I need to specify a default papersource

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
i need to specify which papersource the printer will use as default. i know it can be done in devmode, but does any of you have an example on selecting printer and setting the default papersource on the selected printer ?
I dont know how to use the devmode structure, thats why im asking.

i have this example:
<div style="background-color:white
<pre><p style="color:black <span style="color:Blue using (PrintDocument printDoc = <span style="color:Blue new PrintDocument())
{
printDoc.PrinterSettings.PrinterName = <span style="color:#A31515 "PrinterName";
<span style="color:Green //Replace "PrinterName" with the printer name
printDoc.DefaultPageSettings.PaperSource = printDoc.PrinterSettings.PaperSources[0];
<span style="color:Green // replace 0 with the index
} but i think <span style="color:#0000ff this is not a permanently settings <span style="color:blue on the printer or am i wrong.. will <span style="color:blue this change the settings <span style="color:blue on the printer, so next time it defaults use the selected papersource ?
[/code]



Thanks
<br/>
<br/>

View the full article
 

Similar threads

D
Replies
0
Views
97
Donald Uko
D
J
Replies
0
Views
131
Joseph261
J
A
Replies
0
Views
61
Aleksey Malyshev
A
D
Replies
0
Views
101
Donald Uko
D
Back
Top