DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

print multiple graphics to PDF file

I have a routine that will plot every data channel to a graphic .LPD file. It is easy to print this to a printer, but I need to be able to print to an Adobe .PDF file. Any way to send a 'bunch' of graphics as a single group? I see no way around each plot creating its own .PDF that would all have to be merged in the end. Is there another print method in .VBS besides picprint() that might do this, and skip the printer dialog that comes up?
0 Kudos
Message 1 of 2
(3,679 Views)
You should be able to use the DocStart and DocEnd methods in conjunction with multiple PicPrint calls to indicate to the printer driver that you have a multiple page document that does not end until you invoke DocEnd.

For Example:

Call DocStart
FOR i = 1 TO 3
Call PicLoad("Graph" & i & ".LPD")
Call PicUpdate
Call PicPrint("WinPrint")
NEXT ' i
Call DocEnd

This code snippet will load Graph1.LPD, send it to the printer, load Graph2.LPD, send it to the printer, load Graph3.LPD and send it to the printer, basically creating a multi-page document. This might work with creating a multi-page .pdf file as well.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,679 Views)