Page 1 of 1
Close the Second Preview Form
Posted: Mon Nov 16, 2015 7:25 pm
by Brainstorm
When i create a dot-matrix report, first it opens a Preview window, then i have the option to open a second Preview window when i click the dot-matrix button on the toolstrip menu.
However, when i use the StiReport.CompiledReport.Printed event to automatically close the preview window after the report was printed, this second window is not closed.
Is there anything i can do to fix that?
Re: Close the Second Preview Form
Posted: Tue Nov 17, 2015 3:52 pm
by HighAley
Hello.
Sorry for delay with answer. We need some additional time to chack the issue.
We will be able to answer faster if you send as a sample project that reproduces the issue.
Thank you.
Re: Close the Second Preview Form
Posted: Tue Nov 24, 2015 4:31 pm
by Brainstorm
It's not difficult to reproduce really, you dont need a special report.
Open the print preview window, then click the Dot-Matrix Button at the top, it will open a new window.
If the button doesn't show up, open the designer and set the Preview Mode report property to "Standard and Dot-Matrix".
Re: Close the Second Preview Form
Posted: Wed Nov 25, 2015 11:39 am
by HighAley
Hello.
Thank you for the additional information.
We have reproduced the issue.
We can make this windows as Dialog. Is it right for you?
Thank you.
Re: Close the Second Preview Form
Posted: Thu Nov 26, 2015 12:50 pm
by Brainstorm
My problem is that i set the window to auto-close after the report is printed (code bellow), but the dot-matrix preview window remains open, we need it closed when the preview window is closed.
Thanks.
Code: Select all
rptImpressao.RegData(this.DstImpressao);
rptImpressao.Load(StmcIcon);
rptImpressao.Compile();
rptImpressao.CompiledReport.Printed += new EventHandler(report_Printing);
rptImpressao.Render();
rptView.Report = rptImpressao;
rptView.ShowDialog();
and the Printing event to close the preview form after the report was printed:
Code: Select all
private void report_Printing(object sender, EventArgs e)
{
rptView.Close();
}
Re: Close the Second Preview Form
Posted: Fri Nov 27, 2015 12:35 pm
by HighAley
Hello.
We will make an improvement and let you know about results.
Thank you.
Re: Close the Second Preview Form
Posted: Sat Nov 28, 2015 12:24 am
by Ivan
Hello,
We made some improvements in that direction.
Please check the next release when it will be available on the next week and let us know about the result.
Thank you.