hexagon logo

Printing a file from PC-DMIS

Is it possible to print a file directly from PC-DMIS, without scripting?

For example, I have the following file: C:\Tempreport.PDF

Is there a way to print (or open/print) this file through code? If not, how could I do this through scripting?

Thanks!
Parents
  • Use as PC-DMIS external command. Suggestions based on Acrobat Reader/Acrobat.

    Executes the Reader and prints a file:
    AcroRd32.exe /p filename


    Initiates Acrobat Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.

    AcroRd32.exe /t path printername drivername portname


    The four parameters of the /t option evaluate to path, printername, drivername, and portname (all strings).
    printername - The name of your printer.
    drivername - Your printer driver’s name. Whatever appears in the Driver Used box when you view your printer’s properties.
    portname - The printer's port. portname cannot contain any "/" characters; if it does, output is routed to the default port for that printer.

    Note: If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the command lines.
Reply
  • Use as PC-DMIS external command. Suggestions based on Acrobat Reader/Acrobat.

    Executes the Reader and prints a file:
    AcroRd32.exe /p filename


    Initiates Acrobat Reader, prints a file while suppressing the Acrobat print dialog box, then terminates Reader.

    AcroRd32.exe /t path printername drivername portname


    The four parameters of the /t option evaluate to path, printername, drivername, and portname (all strings).
    printername - The name of your printer.
    drivername - Your printer driver’s name. Whatever appears in the Driver Used box when you view your printer’s properties.
    portname - The printer's port. portname cannot contain any "/" characters; if it does, output is routed to the default port for that printer.

    Note: If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the command lines.
Children
No Data