Problem PDF-Export with StiSegmentPagesDivider.Divide

Stimulsoft Ultimate discussion
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

Hello Stimulsoft-Team,

i have another problem with PDF-Export and SegmentPerWidth > 1 (see my post viewtopic.php?f=9&t=56061).

When exporting to PDF some of the compontents from page 1 are shown as fragments on page 2. There must be still a problem in the StiSegmentPagesDivider.Divide() method. It all worked fine before the reimplementation of the Divide() method. (See page 2 of attached PDF file.)

Can you have a look at that? What can i do to get a correctly divided PDF Export?

Thanks and regards
Thorsten Pontow
Attachments
PDFExportWithSegmentPerWidth_incorrect.pdf
Incorrect dividing of StiSegmentPagesDivider (see page 2)
(122.83 KiB) Downloaded 196 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by Alex K. »

Hello,

Similar to a rounding error, but without a report, it is difficult to say something.

Please send us a simple report with test data which reproduces the issue for analysis.

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

Hi Alex,

I attached Report, used excel data source and resulting PDF. I think the problem has something to do with the page margins.

The first page has to end with "TEXTTEXT" column at right page border (page end) and the second page has to start with date column. As you can see in the PDF file there is one additional column which does not belong to the report.(right on page one and left on page two).

Greetings
Thorsten
Attachments
DataListReport.pdf
(58.27 KiB) Downloaded 226 times
DataListReport.mrt
(14.58 KiB) Downloaded 176 times
DataList.xlsx
(13.09 KiB) Downloaded 203 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

I think when dividing the pages during PDF export the margins should not be used inside the virtual page which stretches over two physical pages.
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by Alex K. »

Hello,

We need some additional time to investigate the issue.

We will let you know about the result.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by Alex K. »

Hello,

In your reports there are following problems:
- in the first report - the edge of the text component is at the right edge of the page
- in the second report - are set borders for the DataBand

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

Hi Alex,

thanks for your investigation and support. I see the problem now and i try to fix it by following your hints.

Thank you
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by Alex K. »

Hello Thorsten

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

Hi Alex,

can you tell me a little more detailed what i should do to fix the problems with this Report?
You wrote at 20. March 2018 11:34:01

In your reports there are following problems:
- in the first report - the edge of the text component is at the right edge of the page
- in the second report - are set borders for the DataBand
Regards
Thorsten Pontow
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

Hello,

i'm still asking me why a Report with correct preview (see file) can produce an incorrect PDF file?

Greetings
Thorsten Pontow
Attachments
Stimulsoft preview correct
Stimulsoft preview correct
PreviewCorrect.png (55.52 KiB) Viewed 3535 times
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Post Reply