Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer code In file is being printed 1

Status
Not open for further replies.

NitzGuy

Programmer
Jun 9, 2003
28
CA
Hello,
I am trying to migrate a 4gl application that generates reports and saves them in files on a linux server. The source was designed to be compiled into c-code and ASCII type variables were used to store the printer code. I decided to remove the variables and have the printer code hard coded into the source. Now the printer code is written to the file but the printer prints it as regular text.
Could this be due to the ASCII datatype?
Is the ASCII datatype supported with p-code?

Thanks
Jason Fournier
 
Hi,

You say that you have removed the variables and have the printer code hard coded into the source itself. How did you replicated those codes? These codes are translated by the printer when they meet the standards specified within the printer read only memory (ROM).

Most of these special codes normally starts with ASCII(27) that is "ESC". If you have to replicate in program source using vi editor precede with control-v for all such codes.

ASCII() is a built-in routine or function in 4gl and not a datatype.

Regards,
Shriyan
 
Thank you so much for your help.
I was all turned around on the subject.


Jason Fournier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top