print command crashes [message #379681] |
Wed, 07 January 2009 11:09  |
l0b0
Messages: 13 Registered: November 2006
|
Junior Member |
|
|
I've got a form which overrides the key-print trigger. It calls a different form, where the user can choose between running a report or continuing to run the standard command. After returning to the calling form, the rest of the key-print trigger handles execution of the appropriate report / print command. However, when choosing "print", Forms crashes with "FRM-92100: Your connection to the Server was interrupted" and a NullPointerException: 
The really strange part is that if I add a message box before the print command, it works fine, so it seems like there's some kind of timing issue at hand. Anyone familiar with this?
|
|
|
|
Re: print command crashes [message #380090 is a reply to message #380024] |
Fri, 09 January 2009 01:53  |
l0b0
Messages: 13 Registered: November 2006
|
Junior Member |
|
|
djmartin wrote on Fri, 09 January 2009 03:57 | Please post your code and detail on which line the form is crashing.
|
In the on-print trigger:
...
elsif (l_rpt_name = 'PSCREEN') then
print; -- Crashes, but not when preceded by a "message" command
return;
end if;
...
djmartin wrote on Fri, 09 January 2009 03:57 | Have you tried using a 'synchronize' in place of the 'message' line?
|
Adding "synchronize;" above the print command did the trick. Thank you very much!
PS: If anyone else is having trouble with apparently nothing being sent to the printer, but without any messages in Forms or on the printer, it could be a printer driver issue: The original PostScript driver didn't work here.
|
|
|