Issue with printing from WebReport

Hello everyone,

I am unfortunately experiencing a very weird issue.

Basically, I am printing to a continous chit printer via the webreport component. On selecting print via browser option (to an Epson TM20 chit printer), the browser is generating an extra page (as per image 1) and causing the printer to go in error state. Tried this both through Chrome and Edge.

As a side note, the size of the paper is being calculated at runtime via the below script which is taking effect (Text112.Text is outputting the right values).

I would appreciate any insight.

Thanks in advance!

alex


Code below to calculate the page height:

 private void Data1_AfterPrint(object sender, EventArgs e)

  {

   reportHeight += (sender as BandBase).Height;

  }     

     private void Page1_StartPage(object sender, EventArgs e)

  {

   if(Engine.FinalPass)

   {

    Page1.PaperHeight = (reportHeight + GroupHeader1.Height+GroupHeader2.Height+

     GroupFooter2.Height+GroupFooter1.Height)/Units.Millimeters + Page1.TopMargin +

     Page1.BottomMargin;

    Text112.Text= Page1.PaperHeight.ToString();

   }

  }


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.