Print to PDF24 Assistant from Visual Basic with own file names

Home › Forums › PDF24 Creator › Print to PDF24 Assistant from Visual Basic with own file names

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #860
    tenortrev
    Participant

    I create documents with Visual Basic 6 and then print to Pdf24 Assistant. There could be as many as 100 documents.
    After printing, the name of each document listed in Assistant is showing as 'Microsoft Visual Basic'.
    Is there a way for each document to be printed to Assistant with a name of my choosing with VB code?
    And then auto save each as individual pdf's with their individual names?

    Many thanks in anticipation.

    #1774
    pdf24
    Member

    The PDF24 Creator determines the file name from the print job name. If the print jo9b name just use Microsoft Visual Basic as name, than the PDF24 Creator will use that name. You have to set a proper print job name in order to get better names in the PDF24 Assistant.

    #66124
    PDF24 Support
    Moderator

    Hello,

    for later readers, as an addition to the answer above: you can let a PDF24 printer save every print job automatically as its own PDF file:

    1. In the PDF24 settings under "PDF Printer", select the printer (or create a separate one with "Install a PDF printer").
    2. Choose "Automatically save documents after printed" and set "Output Directory" and "Filename" under "Auto Save". The placeholder $fileName in "Filename" stands for the name of the print job.

    Since version 11.31.0 the document itself can also set the file name, independently of the print job name: switch on "Recognize control codes in the printed document" for this printer and print a text like @@fn:Invoice-123@@ in the document (ideally on a separate last page together with "Control codes are on a separate last page (remove it after reading)"). This also works with PDF24 Assistant, where the code sets the suggested file name. Description and all codes:

    https://creator.pdf24.org/manual/11/#62-control-codes-in-printed-documents

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.