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)

Comments

  • gpigpi
    edited 3:42AM
    wrote:
    and return back in normal mode to print different pages it remains (in Current mode option )printing only one page ?????
    What code do you use for return back?
  • edited 3:42AM
    i am using the same code it is depnending on the boolean var viewprint.IsPreviewmode
    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????

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.