Drawingprintmanager

Drawingprintmanager

Anonymous
Not applicable
342 Views
2 Replies
Message 1 of 3

Drawingprintmanager

Anonymous
Not applicable
Wy can't i set the orientation for an drawingdocument?
the code looks like this...

Dim oDrawPrintMan As DrawingPrintManager

Set oDrawPrintMan = oDrawingDocument.PrintManager

oDrawPrintMan.Orientation = kPortraitOrientation

the result is the same no matter what i set, kLandscapeOrientation or kPortraitOrientation. No response. It is tested on Inventor R6 SP1. A bug? I noticed the same problem in Inventor 5.3.
0 Likes
343 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi,

 

This has been fixed and am not able to reproduce it
in Inventor 6 or SP1.

 

May be try this:

Public Sub TestPortrait()

 

    Dim oDrawPrintMan As
DrawingPrintManager
   
    Set
oDrawPrintMan = ThisDocument.PrintManager
   
oDrawPrintMan.PrintRange = kPrintCurrentSheet
   
oDrawPrintMan.Orientation = kPortraitOrientation
   
oDrawPrintMan.SubmitPrint

 

End Sub


Cheers,

Thilak

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Wy
can't i set the orientation for an drawingdocument?
the code looks like
this...

Dim oDrawPrintMan As DrawingPrintManager

Set oDrawPrintMan = oDrawingDocument.PrintManager

oDrawPrintMan.Orientation = kPortraitOrientation

the result is the same no matter what i set, kLandscapeOrientation or
kPortraitOrientation. No response. It is tested on Inventor R6 SP1. A bug? I
noticed the same problem in Inventor 5.3.

0 Likes
Message 3 of 3

Anonymous
Not applicable
I made a mistake. Sorry. I did not set the printername before the orientation and that caused my problem. Thanks for your help.



Stefan P
0 Likes