Share via

Print a PDF using Foxit ActiveX SDK pro

Frank Van Eygen 1 Reputation point
2022-04-06T12:25:13.57+00:00

Does anybody have experience with Foxit ActiveX SDK pro in Excel VBA?
I would like to print a PDF silent using Foxit ActiveX SDK pro but I can not even open the PDF.

Can somebody please help?

The code I have for now is this, but it does not work:

Sub Test_Foxit_Print()
    Dim s As String
    Dim sCmd As String
    Dim PDFPrinter As FoxitPDFSDKProLib.PDFPrinter
    Dim sPDFfile As String

    Set PDFPrinter = CreateObject("FoxitPDFSDKProLib.PDFPrinter")
    sPDFfile = "C:\Users\frank\Documents\PDF files\Test Frank.pdf"
    Call PDFPrinter.printWhat(0, sPDFfile)
    Call PDFPrinter.PrintQuiet(sPDFfile)
   
End Sub
Microsoft 365 and Office | Excel | For business | Windows
Developer technologies | Visual Basic for Applications

1 answer

Sort by: Most helpful
  1. John Korchok 232.4K Reputation points Volunteer Moderator
    2022-04-06T15:19:58.25+00:00

    FoxIt Pro is not a Microsoft product. Here is their SDK support page, where you may find an answer to your problem: https://developers.foxit.com/developer-hub/

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.