Problem with databand on report with differing page margins

Stimulsoft Reports.Web discussion
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski » Tue Mar 23, 2021 12:25 pm

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski » Wed Mar 24, 2021 7:24 pm

Hello,

In last versions, in NetCore, the compilation is working, and compilation is enabled in the report. During compilation, events from the base report are not transferred, so it does not work.
There are two options here.

- or turn on the interpretation mode so it's the same as before. in the designer for this particular report, or in the code after loading the report:
report.CalculationMode = StiCalculationMode.Interpretation;

- or write this code directly in the report event script.

We advise interpretation because it is faster and consumes less memory.

Thank you.
n.froeh
Posts: 13
Joined: Mon Oct 05, 2020 6:03 am

Re: Problem with databand on report with differing page margins

Post by n.froeh » Thu Mar 25, 2021 7:03 am

Hello,

well thank you for your help for that problem. The described solution works well.

Now we can come back to the problem described in post:
n.froeh wrote:
Thu Mar 11, 2021 11:13 am
Hello,

thank you for your help with the last issue we had.

We have one more problem with dynamic page margins and the rendering event.

We use the viewer controller with the dynamic page margin like in the previous example with a bigger left and right margin (see ViewerController.cs).

We have a report with a databand with different fields, some are docking to the right (field3), some are docking to the left (field1) and one big field is filling the remaining space in the middle of the databand (field2). (see Report PdfCutOffIssue.mrt with data PdfCutOffIssue.json)
The problem is that the exported pdf cuts off the text of our "field2", although it is displayed correctly in the viewer.

The text is displayed correctly in the viewer:
DesignerCorrect.PNG

The last line is missing in the exported pdf:
PDFIncorrect.PNG

I tested some things and found out, that the problem relies on the dynamic page margins and the dock styles, but could not find a solution.
Is there a fix for this issue?

Thank you for your help and i'm looking forward to an answer.
With the reports and the attached viewercontroller you should now be able to reproduce my actual problem (different output when using dynamic page margins in pdf and viewer for some fields).

Is there a fix for this issue?

Thank you for your help.
Attachments
PdfCutOffIssue.mrt
(5.28 KiB) Downloaded 22 times
PdfCutOffIssue.json
(453 Bytes) Downloaded 21 times
ViewerController.cs
(2.24 KiB) Downloaded 16 times
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski » Mon Mar 29, 2021 6:21 am

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
n.froeh
Posts: 13
Joined: Mon Oct 05, 2020 6:03 am

Re: Problem with databand on report with differing page margins

Post by n.froeh » Tue May 04, 2021 5:41 am

Hello,

is there an update on this issue?

Thank you for your help.
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski » Tue May 04, 2021 7:26 am

Hello,

We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.

Thank you.
n.froeh
Posts: 13
Joined: Mon Oct 05, 2020 6:03 am

Re: Problem with databand on report with differing page margins

Post by n.froeh » Tue May 11, 2021 8:54 am

Hello,

i attached the sample project (
PdfCutOffIssue.zip
(909.03 KiB) Downloaded 9 times
). It's the basic show report in the viewer example with a different ViewerController (dynamic page margins) and report.

As described the text of field 2 is cut off if exported as pdf (it is displayed correctly in the viewer).

I'm looking forward for an answer. Thank you.
Attachments
PdfCutOffIssue.mrt
(5.28 KiB) Downloaded 1 time
PdfCutOffIssue.json
(457 Bytes) Downloaded 2 times
ViewerController.cs
(2.68 KiB) Downloaded 2 times
Lech Kulikowski
Posts: 3592
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski » Fri May 14, 2021 8:07 am

Hello,

We are working on the problem. We will let you know when the solution is available.

Thank you.
#4074
Post Reply