Desktop productivity for business analysts and programmers

How to change font size of log when printed?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 11
Accepted Solution

How to change font size of log when printed?

Is there a way to change the font size of the log when it is printed from EG?   When I print the log or view it using the print preview command, the font size is very small and I don't see a way to change it.   In the editor options, there are ways of changing the font for the log as it appears within the log tab, but that is not the problem I'm having.  I need control over the font in the printed log.    I find that I need to re-run the SAS program in batch, the print the .log file in Textpad to make it readable.

I was able to find options under Results General to control the page width and page height, which fixed another issue I had with the borders being too large on printed output, so that was helpful. Now  I just need a larger font Smiley Happy

I am using EG 5.1, but had the same issue in EG 4.3.  I am running under the Windows 7 operating system.

Thanks, Kathy


Accepted Solutions
Solution
‎08-14-2012 10:56 AM
Community Manager
Posts: 2,889

Re: How to change font size of log when printed?

Kathy,

EG uses the PS and LS options as a cue for making the log content fit on the page.  If you shrink the PS and LS settings (in code or in Tools->Options->Results), I think you'll find that the printed page is more readable.  At least, I hope you do...

Chris

View solution in original post


All Replies
Super User
Posts: 3,240

Re: How to change font size of log when printed?

Under the Program > Editor Options pull-down menu you have the ability to apply the changes to the SAS log by switching the file type option at the top of the dialog box. When I did this and changed the font size of the log it didn't appear to have any effect although if you make the same font size change to the program editor it takes effect immediately. Could this be a bug - someone for SAS may wish to comment? I am also using EG 5.1.

Super User
Posts: 3,240

Re: How to change font size of log when printed?

With further testing I found that after changing the font and font size in the SAS log, saving it as a "scheme", exiting EG then going back in to the log, it now shows the new font and font size. Perhaps this only gets set at start up? Would be interested in clarifying this.

Occasional Contributor
Posts: 11

Re: How to change font size of log when printed?

Thank you for your response, but I believe these editor options are only changing the way the log appears in the log window within EG.  They don't seem to do anything to the printed output or the LOG print preview window, which is where I am having the problem.  I can modify fonts for the log window itself, but the font stays tiny in the preview window and printed output, even when I save schemes and exit and re-enter EG.

Solution
‎08-14-2012 10:56 AM
Community Manager
Posts: 2,889

Re: How to change font size of log when printed?

Kathy,

EG uses the PS and LS options as a cue for making the log content fit on the page.  If you shrink the PS and LS settings (in code or in Tools->Options->Results), I think you'll find that the printed page is more readable.  At least, I hope you do...

Chris

Occasional Contributor
Posts: 11

Re: How to change font size of log when printed?

Thanks Chris. Adjusting LS and PS does help, but it is still printing kind of funky.  Some of the beginning pages seem to have a random page feed in the middle of the page, while others fill page.  I'm not sure what the optimal LS and PS is in this situation (the best result so far is with options ls=80 pagesize=90).  At least the font is large enough to be readable now.

Super User
Posts: 3,240

Re: How to change font size of log when printed?

Kathy, I changed my EG log font to SAS Monospace size 9 (had to go out of EG and back in for it to take effect). I then went into print log preview and it correctly showed the new font and size and it printed just the same as well. I am now convinced you can change the log font even in printed output and implicitly this will alter the LS and PS settings mentioned by Chris but you don't have to guess what the optimum values are.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 2500 views
  • 0 likes
  • 3 in conversation