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!

Simple Report Problem 1

Status
Not open for further replies.

NitzGuy

Programmer
Jun 9, 2003
28
CA
Hello,
Sorry to bother you but I have an interesting report problem.
The COLUMN variable seems to change for each line.
For example: if I 'PRINT COLUMN 1 "HELLO"' three times, the output will be.

HELLO
HELLO
HELLO


However, this only happens when the file is being printed if I view the report everything is fine (also I am on a Redhat linux 7.3 computer).

Here is some of the source.
PRINT COLUMN 1,"Date Printed: ",TODAY USING "MMM. DD, YYYY"
PRINT ASCII(27),"(s7B"
PRINT COLUMN 1,"VACATION CREDIT OVER-TIME REPORT "
PRINT ASCII(27),"(s0B"
PRINT COLUMN 1,cur_from," AND ",cur_to


Can anybody offer any advice on how to approach this problem?

Thanks
Jason Fournier
 
Jason:

The source code is fine and there seems to be no bug in it. The PRINT ASCII(27),"(s7B" and PRINT ASCII(27),"(s0B" are the two statements which are doing this magic.

These are the printer specific (Hardware) escape sequence codes. That means there are supposed do certain special effects such as Bold/double strike/double height/double width etc. Some how your current printer is unable to understand these hardware specific sequences.

To solve this problem, either you may have to chop-off these special codes, or try to print in other printer(s) so the effect they are suppose to bring on is clearly visible.

Try this and compare the result:

PRINT COLUMN 1,"Date Printed: ",TODAY USING "MMM. DD, YYYY"
PRINT COLUMN 1,"VACATION CREDIT OVER-TIME REPORT "
PRINT COLUMN 1,cur_from," AND ",cur_to

Regards,
Shriyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top