 | Automating creating PDFs from Word | |
 |
Problem:How can I automate printing a Microsoft Word document to Win2PDF?Solution:The following sample code uses Microsoft Word and Win2PDF to create PDF files. The sample code bypasses Win2PDF's Fil |
|
 |
 | Specifying the PDF file name from a custom application | |
 | Problem:How can a custom application specify the PDF file name?Resolution:Detailed information on specifying the output file name is in the Win2PDF user guide at: |
|
 |
 | Sending email without user interaction | |
 | Problem:Can Win2PDF email PDF documents automatically without user interaction?Solution:Because of security restrictions in most e-mail clients including Microsoft Outlook, you can't send e-mail without user interaction when u |
|
 |
 | Using Win2PDF and Word from a Windows service | |
 | Problem:I have a Visual Basic 6 application that runs in the background to print MS Word documents to Win2PDF. When the program is run interactively it works fine, but when it is scheduled as a service under an account with Network and Administrator |
|
 |
 | Problem with Word PrintOut method | |
 | Problem:I'm using the registry to specify a filename and I launch Microsoft Word with the OLE ActiveDocument.PrintOut() method. The files it creates are invalid. Sometimes they are 0 bytes, sometimes they are small files with a header and footer but |
|
 |
 | Specifying the PDF file name from multiple processes | |
 | Problem:Is there a way to use the registry to specify the PDF file name from multiple processes on the same PC?Solution:If the processes are running under different user accounts, you can use the HKEY_CURRENT_USER locations in the |
|
 |
 | Setting Win2PDF as active printer from MS Access | |
 | Problem:How can I set the current printer to Win2PDF from Microsoft Access?Solution:The following article from Microsoft shows how to change the current printer: |
|
 |
 | Problem sending email using PDFMailRecipients | |
 | Problem:When setting an e-mail recipient using the PDFMailRecipients registry setting, I get the following error message:"Your message did not reach some or all of the intended recipients.No transport provider was ava |
|
 |
 | Silent uninstall | |
 | Problem:Is there a way to silently uninstall Win2PDF? |
|
 |
 | Set default printer from registry | |
 | Problem:Is it possible to set the default printer to Win2PDF using the registry? Solution:You can set the default printer from the registry by modifying a string value named "Device&q |
|
 |
 | Programatically create landscape PDF | |
 | Problem:How do I programatically create a landscape PDF?Solution:If you're using Visual Basic, you can use the Orientation property of the Printer object to set landscape as in:'set landscape orientation |
|
 |
 | VB example for appending a PDF file | |
 | Problem:Do you have any Visual Basic examples for appending a PDF file? Solution:The following Visual Basic example shows how to append the PDF document named "c:\appendfile.pdf" to a new PDF doc |
|
 |
 | Security permissions registry setting values | |
 | Problem:How do I set the the "security permissions" registry setting to disable printing, copying, and modifying? Solution:The "security permissions" are described on the following page |
|
 |
 | Second file save dialog after cancelling a document | |
 | Problem:We are using VBA to automate the creation of a Word 2003 document. If the user presses Cancel while in the "Win2pdf file save" window, the "Win2pdf file save" window appears a second time. Is there a way to en |
|
 |
 | Detecting when Win2PDF has finished | |
 | Problem:Is there a way in which we could tell when Win2PDF has finished printing?Solution:If you use the PDFPostFileName registry setting to specify the file name instead of PDFFileName, you can check for the existance of the re |
|
 |
 | VB example for emailing a PDF | |
 |
The SaveWin2PDFDword routine used in this example is listed on the following page:http://www.win2pdf.com/doc/usingtheprinterobject.htmThe follo |
|
 |
 | Detect if Win2PDF Pro is installed | |
 | Problem:Is it possible to detect if Win2PDF Pro has been installed rather than Win2PDF standard edition?Solution:If Win2PDF Pro is installed, a registry value named "version" will be present at the following location: |
|
 |
 | Custom page size from Visual Basic | |
 | Problem:How do I use a custom page size in Visual Basic 6?Solution:The following knowledgebase article and sample code from Microsoft shows how to use a custom paper size from Visual Basic: |
|
 |
 | VB Example to Send Email with No User Interaction from Access | |
 | Problem:Do you have any sample code showing how to send email without user interaction from Microsoft Access?Solution:The following sample shows how to email without user interaction using the Win2PDF Mail Helper application. |
|
 |
 | Set PDF file name from C++ MFC application | |
 |
Problem:How can you set the PDF file name from a C++ MFC application so the PDF file name will be created with no user interaction?Solution:You can use the DOCINFO structure to specify the PDF file name in the CDC:Startdoc functi |
|
 |
 | How do I merge two Access reports? | |
 |
'This code assumes that Win2PDF is set as the default printer.'create first PDF file from report rpt_OriginalReportSaveSetting "Dane Prairie Systems", "Win2PDF", "PDFFileName", "c:\tempReport.pdf& |
|
 |
 | How can I append an Access report to an existing PDF file? | |
 | This code sample will append the MS Access report "rpt_ReportToAppend" to the existing PDF file "c:\OriginalPDF.pdf"resulting in the |
|
 |
 | Set PDF file name from .NET framework | |
 | Problem:How do I set the PDF file name from a .NET application?Solution:You can set the PDF file name using the PrinterSettings.PrintFileName property as in:
|
|
 |
 | Set Win2PDF as active printer in VB6 | |
 | Question:How do I set the Win2PDF as the active printer in Visual Basic 6.0?Answer:The following routine sets Win2PDF to be the active printer:Private Sub SetWin |
|
 |
 | Mail Helper status | |
 |
Question:Is there a way to programatically determine if an email has been sent correctly when using the Win2PDF Mail Helper?Answer:The Win2PDF Mail Helper writes the status result to the registry in the standard Win2PDF registry |
|
 |
 | Problem using the Win2PDF Mail Helper to batch email PDF files | |
 |
Problem:When sending PDF files in a batch process using the Win2PDF Mail Helper, some PDF files are attached to the wrong email.Solution:
The problem occurs because the Win2PDF Mail Helper sends email asynchronously. When the ne |
|
 |
 | Print PDF to paper printer | |
 | Question:How do I send the PDF to a paper printer after the final PDF is created?Solution:
Win2PDF can automatically print the final PDF to the Windows default printer if you set the "Print PDF" option in the "file |
|
 |
 | Application.Activeprinter fails because Ne00 port changes | |
 | Problem:I use the Visual Basic command Application.ActivePrinter = "Win2PDF on Ne00:" to set Win2PDF as the active printer |
|
 |
 | VB.NET example | |
 | Question:Do you have an exmaple for printing to Win2PDF from VB.NET?Answer:You can set the PDF file name in .NET using the information in the following article:
|
|
 |
 | VBScript example of printing HTML to PDF | |
 | Question:How can I convert an HTML document to PDF using VBScript?Answer:
Sub SetPDFFile(strPDFFile) Const HKEY_LOCAL_MACHINE = &H80000002 strKeyPath = "SOFTWARE\Dane |
|
 |