CTRL-P (print screen)

Discussion about printing issues and techniques.

Moderators: Susan Smith, admin, Gabriel

Post Reply
Rick Graham
Posts: 45
Joined: Sun Jun 07, 2009 10:50 pm

CTRL-P (print screen)

Post by Rick Graham »

I have a client running br 4.18J in character mode.

Due to some enhancements they wanted. I am now opening the display:
open #0:"Rows=24,Cols=90,

Everthing works fine except for CTRL-P when printing to a HP laser.

Only the 1st 80 characters print, truncating the last 10 which has information they really want.

Is thier a way to force the printer to print 12cpi instead of 10 or print in landscape (just for the print screen, I know how to do it for a report)?

Seems like I'm the only one that ever has print screen issues. No one ever came up with a solution to my previous Codepage 437 issue

Thanks
Rick Graham
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Post by bluesfannoz »

Have not tried this. But did you try putting a ,RECL= on your open and see if it then printed more than the first 80?
Steve Koger
Computer Specialist
SEKESC-MACS Division
Rick Graham
Posts: 45
Joined: Sun Jun 07, 2009 10:50 pm

Post by Rick Graham »

Tried recl=90, but no change.

Thanks for the try

Rick
Rick Graham
Posts: 45
Joined: Sun Jun 07, 2009 10:50 pm

Post by Rick Graham »

I just tried GUI with NWP and still only 80 printed

Rick
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Post by bluesfannoz »

If you do a 'status all -p' What does it show for your 'PRINTSCREEN' setting?

Mine shows 'PRINTSCREEN GUI'

If I do a CTRL-P I get the Print Preview window and all 90 is showing?
Steve Koger
Computer Specialist
SEKESC-MACS Division
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

I have mapped the CTRL-P to prompt the user for a windows printer. This works GUI On or GUI Off

I looked at my code, and saw that I use the following commands. They could also be in your wbconfig.sys

Config substitute PRN:/SELECT WIN:/SELECT
Config printscreen GUI WIN:/SELECT
Rick Graham
Posts: 45
Joined: Sun Jun 07, 2009 10:50 pm

Post by Rick Graham »

PRINTSCREEN GUI does print all 90 characters

Most of the users choose to have some sort of color for their background, therefore they get a grayscale backround on their printscreen (wasting lots of toner, but most import in their words " it's not what I normally get")

I guess they will have to live with it.

Thanks for all your help

Rick
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Post by GomezL »

I remember the complaints that our users had when we implemented this feature.

We had already released our "GUI Version", so it was reasonable to say that A Graphic User Interface required color & pictures.

It's been a really long time, didn't the old print screen reports look terrible?
Rick Graham
Posts: 45
Joined: Sun Jun 07, 2009 10:50 pm

Post by Rick Graham »

Printscreens in color on a color printer look great. I have a HP inkjet that I use for testing, but ink cartridges are way to expensive to use on a regular basis.

This client only has blank & white lasers, so a grey-scale backgorund is meaningless to them.

Rick
gtisdale
Posts: 218
Joined: Sun Jun 07, 2009 7:54 am
Location: Concord, Massachusetts
Contact:

Post by gtisdale »

If you do not want the graphic screen that you get in PRINTSCREEN GUI, or the 80 column screen print that you get in PRINTSCREEN then you will need to provide your own solution.

Since you have the ability to remap the Ctrl-P key sequnce to anything you want (almost), I would suggest remapping it on screens that you have developed a print routine for to be an FKEY number that you trap for and then print a simple report of the titles and variables that your screen is currently displaying.

For the "Screen Shot" you can easily create an NWP printout of the data on your screen and send it to the default printer without the graphic background. Using the data from your screen printing arrays and input arrays You could probably write a function that could create your screen shot report almost automatically.

I do this quite a bit for lists and grids where I want a printout of the data in a listbox, sending it to an RTF document. In 4.3 you will be able to do this with a one line function call. 4.3 will allow this function to print in the order that the user is currently viewing the list and provide sub-totals and grand totals as well as automatically adjusting font size and line wrapping to fit on a single page width report in portrait or landscape depending on the width needed. We will demonstrate this at the San Diego Conference.
Rick Graham
Posts: 45
Joined: Sun Jun 07, 2009 10:50 pm

Post by Rick Graham »

Remapping CTRL-P was my 1st thought.

Since this is mostly custom code, the client is not willing to pay to have all the code modified, just like they aren't will to pay to change to a GUI interface. They are "perfectly content with the application the way it is, just need a couple of slight modifications".

I'm sure we all have heard that one :)

Rick
John
Posts: 555
Joined: Sun Apr 26, 2009 8:27 am

Re: CTRL-P (print screen)

Post by John »

This thread is about 6 years old now... Is anyone currently using Ctrl+P with GUI with non-default screen size? I played with it a little bit but I never could get it out to the printer, but I did get a preview of a quarter of my BR window... and some background noise from other windows. My screen size dynamicly grows to fit content, but it starts some where aroun 35 lines x 140 columns.
John Bowman
Post Reply