Home » Developer & Programmer » Forms » Export a text file and then printing it
Export a text file and then printing it [message #225116] Sat, 17 March 2007 17:11 Go to next message
Accumed
Messages: 2
Registered: March 2007
Junior Member
Hello

I create a text file and save it to the root of my machine at
c:\label\pallet.txt

I then issue a host command as follows:
TYPE C:\LABEL\PALLET.TXT > LPT2 (mapped printer)

I get the following message:

FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-302000

If I shell to the OS and type

TYPE C:\LABEL\PALLET.TXT > LPT2 then my label prints

I suspect that when the host command is sent, it perhaps does not like one of the three sysmbols ':' '\' '>' included in the line.

I have experienced a similar situation writing an application in one database where I had to prefix '@' without which the program considered the sysmbol as a reserved symbol... something like this:

TYPE C:@\LABEL@\PALLET.TXT @> LPT2

Any clues? Thank you for your time!
Re: Export a text file and then printing it [message #225670 is a reply to message #225116] Tue, 20 March 2007 17:21 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have you solved your problem?

David
Export a text file and then printing it [message #225671 is a reply to message #225116] Tue, 20 March 2007 17:36 Go to previous messageGo to next message
Accumed
Messages: 2
Registered: March 2007
Junior Member
Not yet.... please help!

Thank you
Re: Export a text file and then printing it [message #225899 is a reply to message #225671] Wed, 21 March 2007 20:14 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have a look at http://www.orafaq.com/forum/m/129904/67467/?srch=printer+host#msg_129904

David
Previous Topic: Oracle Error for first time login from form
Next Topic: Tabular Data & Tab
Goto Forum:
  


Current Time: Sat Feb 08 20:59:39 CST 2025