I had this problem and I fixed it by editing the macro using the advanced scripting dialog in the task:
Set swPageSetup = swModel.PageSetup ' Printer printer = GetPrinter( [__printer_defpapsize] ) If Len(printer) = 0 Then If Len(docCfgOrSheet) > 0 Then If docType = swDocDRAWING Then Log "Could not print document '" & docFileName & "' and sheet '" & docCfgOrSheet & "'. No printer was selected." Else Log "Could not print document '" & docFileName & "' and configuration '" & docCfgOrSheet & "'. No printer was selected." End If Else Log "Could not print document '" & docFileName & "'. No printer was selected." End If Exit Sub End If '************* lyoung ************* swPageSetup.PrinterPaperSize = 17 swPageSetup.PrinterPaperSource = 7 swPageSetup.ScaleToFit = False swPageSetup.Orientation = swPageSetupOrientation_e.swPageSetupOrient_Landscape
The last 4 lines are the ones I set.
I tried to add this code in and now nothing prints. Any clue why this might happen?
No idea. Try creating a new temporary print task, copy the script into a text editor, add the 4 lines, and then copy the script into your orginal task.
I'm not sure if this helps but I have seen the same thing and a few others. Here's what I have done to fix things:
The next issue is the printer name. If all designers have a common printer (e.g. “\\Stw-lpd1\Xerox WorkCentre M45 PCL6” ) then everyone’s printer must be configured EXACTLY THE SAME with case sensitive printer names. We had a couple machines with the printer configured as \\stw-lpd1\Xerox WorkCentre M45 PCL6 and the Print Task would fail. Notice the printer name itself is exactly the same but the server name is a mix of upper/lower case.
I don't know why BUT configuring each machine exactly the same with case sensitive DNS name seems to have solved the issue. We then configure each Task Host machine’s printer settings for 11 x 17 and Landscape for our drawing prints. This makes no sense but it did fix the issue.
From my drafting days, these were the paper sizes:
- A (letter): 8.5 x 11 inches
- Legal: 8.5 x 14 inches
- B (ledger): 11 x 17 inches
- C: 17 x 22 inches
- D: 22 x 34 inches
- E: 34 x 44 inches
However, the system seems to think A = 8.5 x 10 and C=11 x 17. Something is wrong the paper size list but setting the paper size to C-size seems to fix it.
Thanks for the answer Tim. I will try this as well.
Maybe you can help with this "simple" issue I have here. I am using thr RMC, print option in EPDM. Everything works fine except I want to change the "page setup" to use:
"scale to fit"
"size" = 11x17
"drawing color" = black and white
"orientation" = landscape
Is there some way to set these values so that they are used for EVERY file I print from EPDM (RMC)?
Thanks, and I hope things are going well for you with the airplanes!
the EPDM print task can some times have problem selecting proper printer or size. Check out knowledge base solution S-050030 for workaround that might help you.
-Tor iveroth, EPDM support.