SAS Software for Learning Community

Welcome to the exclusive online community for all SAS learners.
BookmarkSubscribeRSS Feed
Werner_69
Calcite | Level 5
 I'm using  SAS on Demand  (ODA). Under Windows  X64 .
 
I experience a curious situation :
 
All SAS programs less than  1  A4 page can be printed without any problems.
 
I print with the Printer-icon in  SAS Studio within  ODA.
Would there be another way ?
 
However, SAS programs with 2 or more  A4 pages :
when hitting the print-icon
a kind of preview window opens which contains
 
--   the first  60 lines of the program  if  printer.mode = portrait
--   the first  37 lines of the program  if  printer.mode = landscape
 
All the rest is not seen and not printed ; instead there are blank pages coming.
Clearly unsatisfactory.
If I choose  Scaling  40% or lower on Printing options besides the Printer Preview window then the complete program becomes visible and! printable.
But with  40%  not readable.
Who can solve the puzzle ?
 
Werner_69
13 REPLIES 13
JackieJ_SAS
SAS Employee

Hello, I tried to print a multi-page long program and had no issues. Is it possible that it's something with your printer setup, specifically the paper size? When I click the print icon, the code opens in an HTML tab, then another window opens where I select the printer. Is this all happening for you? Since the code opens in a separate HTML tab, you are just printing a web page at that point. Can you print the content of other long web pages outside of ODA?

Perhaps you could try printing the output to a PDF file, then, outside of ODA, you could print the PDF file.

 

 

JackieJ_SAS
SAS Employee

By the way, this is the AI summary for this issue I get from the internet. Maybe it helps.

If your web page prints blank after the first page, check your printer settings, ensure there's enough ink/toner, clean the print head, update or reinstall printer drivers, and try restarting both your printer and computer. 
 
Here's a more detailed breakdown of potential causes and solutions:
 
1. Printer Issues:
  • Low Ink/Toner: Make sure your ink or toner cartridges are not empty or low. 
     
  • Clogged Print Head: A clogged print head can cause patchy or blank printing. Clean the print head according to your printer's instructions. 
     
  • Printer Settings: Check your printer settings (paper type, orientation, margins, etc.) to ensure they are correctly configured for the print job. 
     
  • Printer Driver Issues: Outdated or corrupted printer drivers can cause printing problems. Update or reinstall your printer drivers from the manufacturer's website. 
     
  • Restart Printer and Computer: A simple restart can resolve temporary glitches that may be causing the issue. 
     
  • Check for Paper Jam: Ensure there are no paper jams that could be causing the printer to stop. 
     
  • Check for Disconnected Cartridge: Even if the cartridge looks full, it might have become disconnected. 
     
2. Web Browser Issues:
  • Hardware Acceleration:
    In some browsers, disabling hardware acceleration can help with printing issues. For example, in Chrome, go to Settings > Advanced > System, and disable "Use hardware acceleration when available".
  • Reset Browser Settings:
    Resetting your browser to its default settings can resolve some printing problems.
  • Check for Browser Extensions:
    Some browser extensions can interfere with printing. Try disabling extensions to see if that resolves the issue. 
     
3. Network Issues (if applicable):
  • Wired Connection: If you're using a wireless connection, try using a wired connection to see if that resolves the issue.
  • Printer Network Settings: Ensure your printer is correctly configured for your network. 
Werner_69
Calcite | Level 5

Thanks JackieJ :

The problem appears with two different PCs, two OS (Win 10, Win 11), two Printers, two connections (cable and WLAN).

I just printed out 6 pages of  pdf : without any problems (from Adobe Reader).

SAS ODA is the only program that shows this behaviour.

So this seems to rule out most proposals made.

You never can be absolutely certain, but I believe it points to hidden settings behind the print icon. How can I check/control/reset those ?

My browser is  Firefox.

I would hope that someone had had the same problem before and would know an answer.

As I want to preserve the formatting and color-coding, could you tell me the way from  CODE-window to paper via pdf ?

 

Kind regards,   Werner_69

Werner_69
Calcite | Level 5

Here is why I believe that it is not (or at least not only) an issue of my system :

a.  The effect only happens with the  CODE-window, not with LOG- or RESULTS-window.

b.  The effect does not happen in more than 10 not-SAS related Web-applications recently checked. 

Rick_SAS
SAS Super FREQ

Try this: When the Print dialog box appears, choose "Save to PDF" under the "Printer" drop-down menu. Then save the PDF to a file and open it in a program such as Acrobat Reader. Does the PDF have all the pages?

 

  • If so, try sending the PDF to your printer. Does it print all pages? If so, you can use this two-step method as a workaround to your problem.
  • If the PDF does not have all the pages, attach the PDF file so we can see what is happening. 
Werner_69
Calcite | Level 5

I do enclose a print to pdf-file that shows the behavior.

Hope you'll see the reason.

Thanks.

Werner_69

Rick_SAS
SAS Super FREQ
  • Are you printing from a Windows PC, a MAC, or something else?
  • How are you printing the program? What window has the focus and what is the exact sequence of mouse clicks or keyboard shortcuts that you use to print the program? 
Werner_69
Calcite | Level 5

I'm printing from Windows 11 X64 ; browser is Firefox, most recent

program is in CODE window

I click the Print code icon

New Browser (preview) window opens

that window shows pages 1 of 21  (but when I check only page 1 has visible contents the others look empty)

in the printer side bar if it is pre-assigned  TARGET  Save as pdf  I simply click  SAVE

if TARGET has another pre-assignment e.g. printer name I change that to TARGET  Save as pdf  and then click  SAVE

(TARGET  is translated from German Ziel ; could be slightly different in US-Windows system).

hope that helps

Rick_SAS
SAS Super FREQ

Hi @Werner_69 I used ODA, pasted your DATA step example, and copied/pasted the data until the DATALINES block was very large. By using the steps you described, I was able to successfully print the Code window. I generated examples that printed up to 100 pages. All were successful. I was using the Chrome browser, not Firefox.

 

So, unfortunately, I am unable to reproduce your problem. I do not have any other ideas other than the previous suggestion to try another browser to determine whether this is a browser-dependent issue.

FreelanceReinh
Jade | Level 19

Hello @Werner_69,

 

I have just typed the search terms

"Firefox" "print" "only the first page"

into the DuckDuckGo search bar and have got several links to web pages (including the Mozilla Support website) indicating that this is a browser-specific issue (likely a bug), unrelated to SAS, and that certain edits to a file called print.css may or may not help. Good luck! I would just use a different browser.

Patrick
Opal | Level 21

@Werner_69 
Same as @JackieJ_SAS : No issues printing multiple pages from SAS ODA using the printer icon.
I'm using Chrome (Version 134.0.6998.89 (Official Build) (64-bit)) on a laptop with Windows 11 Version 24H2

If you need further proof that it's an issue with your environment and not SAS ODA: Attach one of your programs that you can't print as-is and I'll test how this prints on my end.

 

Patrick_1-1742463538037.png

 

Patrick_0-1742463464038.png

 

JackieJ_SAS
SAS Employee
One additional thought. You mentioned you are using Firefox as a browser. Try using a different browser (Google Chrome, Microsoft Edge) and also try updating your Firefox browser to the latest version.
Werner_69
Calcite | Level 5

Thanks so much. There was no reason found/no true solution.

 

For the time being I'm using a two step approach :  1.  Download   2.  Open with  SAS Universal viewer  +  PRINT

 

It's the best I can get right now.

 

Werner_69

 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 13 replies
  • 1572 views
  • 2 likes
  • 5 in conversation