Reply

Viewer AxSEDraftX1

Hello!

VB.Net

With a Solid edge viewer control, AxSEDraftX1 from SEDraft.ocx , I want to print drawing with the command PrintOut()

and I want to print without the windows printer

How to display the windows printer?

 

this is my code:

 

....

AxSEDraftX1.Fit()

AxSEDraftX1.BackColor = Color.White

AxSEDraftX1.MouseAction = "ZoomArea"

AxSEDraftX1.DraftFile = ("C:\Dessin2\1285\12856\128569AA1.dft")

???

AxSEDraftX1.PrintOut()

...

 

thank you!

 

Posted by: Plante Sylvain
Post date: 1/12/2013 9:08:38 AM

1 REPLY

Viewer AxSEDraftX1

If you use the PrintOut method, you see the dialog to print.

In this dialog you can see the windows printers.

For the print without dialog you can loop the sheets and print the sheet single.

 

Dim objShts As SEDRAFTXLib.Sheets = AxSEDraftX1.Sheets

For i = 0 To objShts.Count - 1

Dim objSh As SEDRAFTXLib.Sheet = objShts.Item(i)

objSh.PrintOut(1)

Next

 

Posted by: JR
Post date: 1/23/2013 4:44:50 AM