04-29-2015 12:29 AM
I have used PicPdfExport in my Diadem script some times it throws error and some times pic will not get append to the pdf file.
when i run the script in debug mode (With break point at or before PicPdfExport command), pic will get append to pdf file and runs with out throwing any error.
i have attached the Error i got. Any one know the solution for this problem? Please reply back asap. its very much urgent.
04-29-2015 12:20 PM
Hi sunil,
What happens when you click on the "PDF" icon at the top of the REPORT panel? Does it successfully export all the sheets to a PDF file that is viewable? Does your VBScript throw an error? It looks like the error message you included occurs when trying to view the resulting PDF file.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-29-2015 11:10 PM
Hi Brad,
Thanks for your quick reply.
When i click on PDF export icon under report panel, pdf will get generated with all sheets, without throwing any error.
My VBScript throws error randomly, after the error i close and reopen the diadem and run the script, it runs fine without any error.
i am using picprint and picpdfexport in my script at 3 places.
1. I use picprint to print certain pages.
2. I use picpdfexport command to pring a single page (which has bargraph in it).
3. Again picpdfexport to print few pages.
script is failing at 2nd step. some times it throws error and some times no error, but single page will not be appended to pdf file. when i debug the script, single sheet will get appended in pdf file.
Regards
Sunil
05-07-2015 05:22 AM
Hi,
Can anyone solve this issue?
05-11-2015 05:17 PM
Hi sunil,
Are you using DocStart and DocEnd for your PicPrint stage? What's the simplest script you can create that will cause this problem? Would you send that over please, along with data files and REPORT layouts, etc.?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
05-15-2015 12:10 AM
Hi,
i have used the below code.
Call GraphSheetInfos()
PrinterName = "winspool,DIAdem PDF Export,LPT1:"
PDFFilename = PDFFilenameHold_
PrintRangeType = "PageEnums"
PrintFromPage = 1
PrintToPage = GraphSheetCount
PDFResolution = "150 DPI" ' "2400 DPI" , "default"
PDFOptimization = TRUE
PDFFontsEmbedded = FALSE
PDFJPGCompressed = "high"
Call PrintMaxScale("REPORT")
Call Docstart()
Call PicPrint("WinPrint")
Call DocEnd()
tempcount_ = 1
Call GraphDeleteAll()
Sorry Brad i cannot send you the Dataset. it is against our company policy.