Problem with databand on report with differing page margins

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

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski »

Hello,

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

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

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski »

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: 17
Joined: Mon Oct 05, 2020 6:03 am

Re: Problem with databand on report with differing page margins

Post by n.froeh »

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 162 times
PdfCutOffIssue.json
(453 Bytes) Downloaded 152 times
ViewerController.cs
(2.24 KiB) Downloaded 155 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski »

Hello,

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

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

Re: Problem with databand on report with differing page margins

Post by n.froeh »

Hello,

is there an update on this issue?

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

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski »

Hello,

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

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

Re: Problem with databand on report with differing page margins

Post by n.froeh »

Hello,

i attached the sample project (
PdfCutOffIssue.zip
(909.03 KiB) Downloaded 150 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 134 times
PdfCutOffIssue.json
(457 Bytes) Downloaded 129 times
ViewerController.cs
(2.68 KiB) Downloaded 145 times
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski »

Hello,

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

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

Re: Problem with databand on report with differing page margins

Post by n.froeh »

Hello,

is there an update on this?

Greetings
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with databand on report with differing page margins

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply