Home » Developer & Programmer » Forms » print command crashes (Forms 10, Window XP SP3)
print command crashes [message #379681] Wed, 07 January 2009 11:09 Go to next message
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
print;
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: /forum/fa/5548/0/

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 #380024 is a reply to message #379681] Thu, 08 January 2009 20:57 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please post your code and detail on which line the form is crashing. Have you tried using a 'synchronize' in place of the 'message' line?

David
Re: print command crashes [message #380090 is a reply to message #380024] Fri, 09 January 2009 01:53 Go to previous message
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.
Previous Topic: how to copy a form image to word file
Next Topic: Please Please I need your help
Goto Forum:
  


Current Time: Thu Feb 06 19:33:28 CST 2025