If it's like the DWF writer, you must set the printer driver to the largest
possible size, then you can print everything that's smaller. I had a similar
problem when printing using the Autodesk DWF writer and found that no matter
what I told IV to print it would come out A size. Changing the DWF writer to
E size allowed me specify whatever size I wanted. It's worth a try ...
Joe
--
"Scott Maier" wrote in message
news:4852343@discussion.autodesk.com...
I am having problems printing to drawing sizes other then A Size (Letter).
I have scanned through the messages in this Newsgroup and tried
everything that I have found, including making sure that I set the
properties in a specific order.
No matter what size I specify, the printer spits out the drawing on an A
Size piece of paper. Anybody have any suggestions?
Here is my code:
Private objApprenticeServerApp As New ApprenticeServerComponent
Private Sub PlotInventorDrawing(strDwgPath As String, strPlotSize As
String, strPlotter As String)
' Open a document.
Dim odoc As ApprenticeServerDocument
Set odoc = objApprenticeServerApp.Open(strDwgPath)
Dim oPrintMgr As ApprenticeDrawingPrintManager
Set oPrintMgr = odoc.PrintManager
' Set printer
oPrintMgr.Printer = strPlotter
' Set the paper size.
Select Case strPlotSize
Case "A"
oPrintMgr.PaperSize = kPaperSizeLetter
Case "B"
oPrintMgr.PaperSize = kPaperSize11x17
Case "C"
oPrintMgr.PaperSize = kPaperSizeCSheet
Case "D"
oPrintMgr.PaperSize = kPaperSizeDSheet
Case "E"
oPrintMgr.PaperSize = kPaperSizeESheet
End Select
' Set to print full scale.
oPrintMgr.ScaleMode = kPrintBestFitScale
' Set to print using portrait orientation.
oPrintMgr.Orientation = kLandscapeOrientation
' Set to print in color.
oPrintMgr.ColorMode = kPrintColorPalette
' Print
oPrintMgr.SubmitPrint
End Sub
Thanks,
Scott Maier
Programmer/Analyst
SPX Process Equipment - Lightnin