How to call pdfprintsdk.dll from 64bit EXE application?

We are planning to use VeryPDF PDFPrint for our project to print the pdf file silently. I have gone through both PDFPrint Command Line and PDFPrint SDK. PDFPrint Command Line works fine for my requirement, but I wanted to know whether PDFPrint SDK supports 64 bit system? I found in one of you article that PDFPrint SDK doesn't supports 64 bit system. Can you please confirm and clarify on this?

http://www.verypdf.com/wordpress/201109/pdf-print-does-print-pdf-file-to-printer-only-starts-but-without-printing-the-page-2680.html

Thanks
Customer

----------------------------------------------

Yes, pdfprintsdk.dll is a 32bit DLL Library, you can only call it from 32bit EXE application. However, if you wish call pdfprintsdk.dll from a 64bit EXE application, you may use pdfprintcom.exe to instead of pdfprintsdk.dll, pdfprintcom.exe is a COM interface to the pdfprintsdk.dll library, please by following steps to use pdfprintcom.exe COM component,

1. Launch a CMD window by Administrator Privilege (click "Run as administrator" menu on cmd.exe application),

To start a command prompt as an administrator


  1. Click Start, click All Programs, and then click Accessories.

  2. Right-click Command prompt, and then click Run as administrator.

  3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

To start a command prompt as an administrator (alternative method)


  1. Click Start.

  2. In the Start Search box, type cmd, and then press CTRL+SHIFT+ENTER.

  3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

User Account Control in Vista extends to the Command Prompt. If you get a "you do not have permission..." error, it's probably because you need administrator permissions to run the command. Here's how to run from the command prompt as administrator:

Click Start, in the Start Search box, type command. A list of of matches will appear above. Right-click Command Prompt in Programs list, and then click Run as administrator. You will likely be prompted for an administrator confirmation, or a password. Type your password or click Continue.

image


2. Switch the current folder to "pdfprint_sdk\bin" folder, pdfprintcom.exe is exist in this folder,

3. Run following command line to register pdfprintcom.exe into your system,

pdfprintcom.exe /regserver

4. After you register it properly, you can use following VBScript code to test pdfprintcom.exe COM interface, the COM name is "pdfprintcom.pdfprint",

----------------------------
'please run "64bit-com-install.bat" to register pdfprintcom.exe first
Set pdfcom = CreateObject("pdfprintcom.pdfprint")
nRet = pdfcom.com_PDFPrint("pdfprint D:\temp\1234.pdf")
----------------------------

You can also call "pdfprintcom.pdfprint" from VB.NET or C# code to print PDF files easily, on both 32bit and 64bit systems.

Please refer to following web page for more information,

http://www.verypdf.com/wordpress/201301/how-to-call-pdfprint-sdk-from-windows-64bit-x64-system-34115.html

http://www.verypdf.com/wordpress/201109/pdf-print-does-print-pdf-file-to-printer-only-starts-but-without-printing-the-page-2680.html

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Print and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!