[Migrated content. Thread originally posted on 05 February 2004]
I am printing a report with a 132 byte print line. There is a lot of information on the report and the user would like one field to print in bold.
I've seen an example where the whole line was printed in bold by using begin-bold value H"1B5B316D" and end-bold value H"1B5B306D" in the print statments. I don't want to bold the whole line.
Any ideas or suggestions on how to accomplish bolding only one field would be greatly appreciated.
You don't say what platform youy're printing on, if you are on a non windows or using SPOOLER-DIRECT, you can do this:
WRITE prrec FROM "This is normal" WITH NO CONTROL.
WRITE prrec FROM yourescapesequencetoturnonbold WITH NO CONTROL.
WRITE prref FROM "This would be bold" WITH NO CONTROL.
WRITE prrec FROM yourescapesequencetoturnoffbold WITH NO CONTROL.
WRITE prrec FROM "Back to normal again".
With Windows SPOOLER there are two methods to accomplish this:
Either use the WINPRINT-SET-DATA-COLUMNS and related functions. See sample directory, graphprn.cbl for an example.
Or if you can use a mix of WITH NO CONTROL and WINPRINT-SET-CURSOR and WINPRINT-SET-FONT.
[Migrated content. Thread originally posted on 05 February 2004]
I am printing a report with a 132 byte print line. There is a lot of information on the report and the user would like one field to print in bold.
I've seen an example where the whole line was printed in bold by using begin-bold value H"1B5B316D" and end-bold value H"1B5B306D" in the print statments. I don't want to bold the whole line.
Any ideas or suggestions on how to accomplish bolding only one field would be greatly appreciated.
You don't say what platform youy're printing on, if you are on a non windows or using SPOOLER-DIRECT, you can do this:
WRITE prrec FROM "This is normal" WITH NO CONTROL.
WRITE prrec FROM yourescapesequencetoturnonbold WITH NO CONTROL.
WRITE prref FROM "This would be bold" WITH NO CONTROL.
WRITE prrec FROM yourescapesequencetoturnoffbold WITH NO CONTROL.
WRITE prrec FROM "Back to normal again".
With Windows SPOOLER there are two methods to accomplish this:
Either use the WINPRINT-SET-DATA-COLUMNS and related functions. See sample directory, graphprn.cbl for an example.
Or if you can use a mix of WITH NO CONTROL and WINPRINT-SET-CURSOR and WINPRINT-SET-FONT.
[Migrated content. Thread originally posted on 05 February 2004]
I am printing a report with a 132 byte print line. There is a lot of information on the report and the user would like one field to print in bold.
I've seen an example where the whole line was printed in bold by using begin-bold value H"1B5B316D" and end-bold value H"1B5B306D" in the print statments. I don't want to bold the whole line.
Any ideas or suggestions on how to accomplish bolding only one field would be greatly appreciated.
You don't say what platform youy're printing on, if you are on a non windows or using SPOOLER-DIRECT, you can do this:
WRITE prrec FROM "This is normal" WITH NO CONTROL.
WRITE prrec FROM yourescapesequencetoturnonbold WITH NO CONTROL.
WRITE prref FROM "This would be bold" WITH NO CONTROL.
WRITE prrec FROM yourescapesequencetoturnoffbold WITH NO CONTROL.
WRITE prrec FROM "Back to normal again".
With Windows SPOOLER there are two methods to accomplish this:
Either use the WINPRINT-SET-DATA-COLUMNS and related functions. See sample directory, graphprn.cbl for an example.
Or if you can use a mix of WITH NO CONTROL and WINPRINT-SET-CURSOR and WINPRINT-SET-FONT.
[Migrated content. Thread originally posted on 05 February 2004]
I am printing a report with a 132 byte print line. There is a lot of information on the report and the user would like one field to print in bold.
I've seen an example where the whole line was printed in bold by using begin-bold value H"1B5B316D" and end-bold value H"1B5B306D" in the print statments. I don't want to bold the whole line.
Any ideas or suggestions on how to accomplish bolding only one field would be greatly appreciated.
Thanks for the info. I am using windows spooler. We are on version 4.3.1 of AcuCobol, and I don't find the two items you reference in our manual. Were these added in version 5 or 6?
[Migrated content. Thread originally posted on 05 February 2004]
I am printing a report with a 132 byte print line. There is a lot of information on the report and the user would like one field to print in bold.
I've seen an example where the whole line was printed in bold by using begin-bold value H"1B5B316D" and end-bold value H"1B5B306D" in the print statments. I don't want to bold the whole line.
Any ideas or suggestions on how to accomplish bolding only one field would be greatly appreciated.
WINPRINT-SET-CURSOR is fairly new, but I believe the others to be a part of 4.3.1 too, you may check your winprint.def file. Note however, the graphprn.cbl sample program came with version 5.2.0.
I'd rather check out the most recent release, 6.1.0 which has all the enhancements that has been throughout the last years, there has been a few.
I suggest you check out with your Acucorp representative to get the full details.
[Migrated content. Thread originally posted on 05 February 2004]
I am printing a report with a 132 byte print line. There is a lot of information on the report and the user would like one field to print in bold.
I've seen an example where the whole line was printed in bold by using begin-bold value H"1B5B316D" and end-bold value H"1B5B306D" in the print statments. I don't want to bold the whole line.
Any ideas or suggestions on how to accomplish bolding only one field would be greatly appreciated.
WINPRINT-SET-CURSOR is fairly new, but I believe the others to be a part of 4.3.1 too, you may check your winprint.def file. Note however, the graphprn.cbl sample program came with version 5.2.0.
I'd rather check out the most recent release, 6.1.0 which has all the enhancements that has been throughout the last years, there has been a few.
I suggest you check out with your Acucorp representative to get the full details.