Page 1 of 1
Select Print Page 2 via WINFORM
Posted: Tue Sep 22, 2020 11:46 am
by yalisalar
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 Page.jpg (12.33 KiB) Viewed 3064 times
Re: Select Print Page 2 via WINFORM
Posted: Tue Sep 22, 2020 3:11 pm
by Lech Kulikowski
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.
Re: Select Print Page 2 via WINFORM
Posted: Wed Sep 23, 2020 11:19 am
by yalisalar
Hi
OK! Thank you very much for your good answer.
The problem was solved! → Pages1.Enabled = false;
Re: Select Print Page 2 via WINFORM
Posted: Wed Sep 23, 2020 11:25 am
by yalisalar
" 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
Re: Select Print Page 2 via WINFORM
Posted: Wed Sep 23, 2020 6:33 pm
by Lech Kulikowski
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.
Re: Select Print Page 2 via WINFORM
Posted: Thu Sep 24, 2020 4:39 am
by yalisalar
Hello,
Thank you for your answer
Re: Select Print Page 2 via WINFORM
Posted: Thu Sep 24, 2020 8:54 am
by HighAley
Hello,
We are always glad to help you.
Thank you.