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.
By the way, this is the AI summary for this issue I get from the internet. Maybe it helps.
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
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.
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?
I do enclose a print to pdf-file that shows the behavior.
Hope you'll see the reason.
Thanks.
Werner_69
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
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.
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.
@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.
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
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Ready to level-up your skills? Choose your own adventure.