T
trint
I want to do something like this to interrupt the print process (But
this does not work because the error is "cannot implicitly conver type
void to bool"):
while(pd.Print())
{
pCounter++;
if(printerSettings.Copies == 2)
{
pd.DefaultPageSettings.PaperSource =
pd.PrinterSettings.PaperSources[comboBox1.SelectedIndex = 5];
}
if(printerSettings.Copies == 1)
{
pd.DefaultPageSettings.PaperSource =
pd.PrinterSettings.PaperSources[comboBox1.SelectedIndex = 6];
}
if(pCounter == 6)
break;
}
Thanks,
Trint
this does not work because the error is "cannot implicitly conver type
void to bool"):
while(pd.Print())
{
pCounter++;
if(printerSettings.Copies == 2)
{
pd.DefaultPageSettings.PaperSource =
pd.PrinterSettings.PaperSources[comboBox1.SelectedIndex = 5];
}
if(printerSettings.Copies == 1)
{
pd.DefaultPageSettings.PaperSource =
pd.PrinterSettings.PaperSources[comboBox1.SelectedIndex = 6];
}
if(pCounter == 6)
break;
}
Thanks,
Trint