DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Error using PicPrintDlg

I have a simple script containing the two following lines:

Call WndShow("REPORT","MAXIMIZE")

PicPrintDlg("WinPrint")

They will show the current report and the open the print dialog for printing this report.
If i press "OK" in the print dialog then everything works fine and the report is printed.
However, if i click "cancel" in the print dialog i get an error message telling me there is an unspesified error and referring to the "PicPrintDlg" line. Meaning there either is an error/bug in this command or that I'm not using it correctly.

Any help?
0 Kudos
Message 1 of 5
(3,963 Views)
Hello salte!
 
I tried it in DIAdem 9.1 with no problem.
 
Which version do you use and can you look into the DIAdem log file. Sometimes there are additional informations.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 5
(3,961 Views)
I'm using DIAdem 10.0.

Couldn't find anything in the system log.(Does DIAdem have a log file of its own?)
0 Kudos
Message 3 of 5
(3,961 Views)
Hello salte!
 
Yes I can reproduce it in DIAdem 10.0 and for compatibility :-((( it is also in DIAdem 10.1 Beta 3!
 
What you can do as a workaround is to wrap the PicPrintDlg call into On Error Resume Next / On Error Goto 0
On Error Resume Next
  PicPrintDlg("WinPrint")
On Error Goto 0
DIAdem have it's own log file. You can view it via the menu 'Hilfe\Logdatei anzeigen...' (German) in an english version it will be something like 'Help\View log file....'.
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 4 of 5
(3,954 Views)
Yes, that works.
Thanks for your help!
0 Kudos
Message 5 of 5
(3,943 Views)