EDN Admin
Well-known member
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
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