Current page is selected ???
if dataform.msdbprn1.value=''
then
exit;
if viewprintform.MatrixReport.FileName<>getReportPath+'matrix.fr3'
then
viewprintform.MatrixReport.LoadFromFile(getReportPath+'matrix.fr3');
viewprintform.MatrixReport.Printoptions.PageNumbers:='';
viewprintform.MatrixReport.Printoptions.ShowDialog:= viewprint.IsPreviewmode;
viewprintform.Metrixeengine.OEMConvert:=false;
viewprintform.MatrixReport.ShowProgress:=false;
viewprintform.MatrixReport.Printoptions.Printer:=dataform.msdbprn1.value;
viewprintform.MatrixReport.Printoptions.PrintPages:=ppAll;
if viewprintform.MatrixReport.PrepareReport
then
if viewprint.IsPreviewmode then
viewprintform.MatrixReport.ShowPreparedReport
else
viewprintform.MatrixReport.print;
THis code is working fine 100% with dot matrix reports (invoices)
when you are in Preview mode and choose Current page to print
(because of a broken report...)
and return back in normal mode to print different pages it remains (in Current mode option )printing only one page ?????
of the whole report
Any suggestion to return to the previous status (Print all pages)
then
exit;
if viewprintform.MatrixReport.FileName<>getReportPath+'matrix.fr3'
then
viewprintform.MatrixReport.LoadFromFile(getReportPath+'matrix.fr3');
viewprintform.MatrixReport.Printoptions.PageNumbers:='';
viewprintform.MatrixReport.Printoptions.ShowDialog:= viewprint.IsPreviewmode;
viewprintform.Metrixeengine.OEMConvert:=false;
viewprintform.MatrixReport.ShowProgress:=false;
viewprintform.MatrixReport.Printoptions.Printer:=dataform.msdbprn1.value;
viewprintform.MatrixReport.Printoptions.PrintPages:=ppAll;
if viewprintform.MatrixReport.PrepareReport
then
if viewprint.IsPreviewmode then
viewprintform.MatrixReport.ShowPreparedReport
else
viewprintform.MatrixReport.print;
THis code is working fine 100% with dot matrix reports (invoices)
when you are in Preview mode and choose Current page to print
(because of a broken report...)
and return back in normal mode to print different pages it remains (in Current mode option )printing only one page ?????
of the whole report
Any suggestion to return to the previous status (Print all pages)
Comments
Report is never comming back to previous status
if i choose on viewprintform.MatrixReport.Printoptions.ShowDialog the All option or seperate pages i have no problem
only the current page create this bad situation
i have try everything from the source code (Fastreport)
it Seems to be a BAG????