DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

PDFExport Dialog

Hi,
 
  I use Diadem 10.1 and i want to export a report to a PDF file. I do it with PicPdfExport but I want to display the dialog box to choose the filename and the forder to save it.  Is it possible to call in a script a function like PicPdfExportDlg?

Thanks,


Oriol.
0 Kudos
Message 1 of 2
(3,001 Views)
Hi Oriol,

You can use the following syntax:

' opens dialog for path and file name setting
if FileNameGet("ANY", "FileWrite", "D:\Test\", "PDF file (*.PDF),*.PDF") = "IDOk" then
  ' msgbox FileDlgFileName
  PrintName = "winspool,DIAdem PDF Export,LPT1:"
  PDFFilename=FileDlgFileName
  PrintRangeType = "PageEnums"
  PrintFromPage = 2
  PrintToPage = 4
  Call PicPrintDlg("WinPrint") ' opens dialog for PDF parameter setting
  'Call PicPrint("WinPrint")
end if


Greetings
Walter


0 Kudos
Message 2 of 2
(2,990 Views)