Special greetings
I have designed two report pages. For example : PAGE1 = A4 and PAGE2 = A5
I want only one of them to be printed at the user's choice. via WINFORM
What should I do to do this?
What is the command code for this? --> Button OK
Select Print Page 2 via WINFORM
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: Select Print Page 2 via WINFORM
Hello,
You can call the Print() method with the necessary printing setting in which set page number.
Or you can disable page in the report
report.Pages[index].Enabled = false;
Thank you.
You can call the Print() method with the necessary printing setting in which set page number.
Or you can disable page in the report
report.Pages[index].Enabled = false;
Thank you.
Re: Select Print Page 2 via WINFORM
Hi
OK! Thank you very much for your good answer.
The problem was solved! → Pages1.Enabled = false;
OK! Thank you very much for your good answer.
The problem was solved! → Pages1.Enabled = false;
Re: Select Print Page 2 via WINFORM
" You can call the Print() method with the necessary printing setting in which set page number. "
But I'm curious to know more about the print() method.
Can you explain this method as well? (with example)
Thank you
But I'm curious to know more about the print() method.
Can you explain this method as well? (with example)
Thank you
-
- Posts: 6265
- Joined: Tue Mar 20, 2018 5:34 am
Re: Select Print Page 2 via WINFORM
Hello,
You can call Print() method from code with necessary settings:
StiReport report = new StiReport();
report.Load("");
report.Render(false);
PrinterSettings printSettings = new PrinterSettings();
printSettings.PrinterName = "";
printSettings.PrintRange = ;
report.Print(printSettings);
Thank you.
You can call Print() method from code with necessary settings:
StiReport report = new StiReport();
report.Load("");
report.Render(false);
PrinterSettings printSettings = new PrinterSettings();
printSettings.PrinterName = "";
printSettings.PrintRange = ;
report.Print(printSettings);
Thank you.
Re: Select Print Page 2 via WINFORM
Hello,
Thank you for your answer
Thank you for your answer
Re: Select Print Page 2 via WINFORM
Hello,
We are always glad to help you.
Thank you.
We are always glad to help you.
Thank you.