11-23-2010 04:21 AM
Hello,
when Using via script the command
for i=1 to 100
' Load new Data and build report
Call PicPdfExport(MyFolders(0) & str(i) & ".pdf" )
Call PicExport(MyFolders(0) & str(i) &".PNG","PNG",1,2000,2666,"RGB 24",75,"NoCompression",0)
next
I recieve an error message that the clipboard couldn't be opend. I guess the clipboard is full. With only PicPdfExport it works.
Are there any commands to clear the clipboard or what can I do?
Thanks for help
Gabriel
(Diamdem 11.0)
11-23-2010 10:45 AM
Hi Gabriel,
You say that this script snippet works if you comment out the PicExport() command and just use the PicPdfExport() command in the loop, but what happens if you comment out the PicPdfExport() command and just use the PicExport() command? Does it fail on the first loop iteration or some later iteration? What happens if you reduce the (rather large) picture size from 2000 x 2666 to something very modest like 400 x 600, just for debugging purposes? Does it then run through, or does it make it through more loop iterations than before?
DIAdem 11.1 introduced the TextFromClipboard() and TextToClipboard() commands to easily control the clipboard contents. I'm not sure if it would help to clear the clipboard between each call to PicExport(), but that would be easy to try in DIAdem 11.1 or later.
Feel free to send in the data and layout that you're using-- we'll try to reproduce the problem here.
Brad Turpin
DIAdem Product Support Engineer
National Instruments