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

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by tpontow »

By the way: Everything worked fine in Version 2016.3. And there are many changes in the

Code: Select all

StiSegmentPagesDivider
class since then.
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 found the reason for my problem. In method

Code: Select all

public static StiPagesCollection Divide(StiPagesCollection pages, StiExportService service)
of class

Code: Select all

Stimulsoft.Report.Export. StiSegmentPagesDivider
when using PDFExport the variable needClip is going to be false:

Code: Select all

var needClip = !(service is StiPdfExportService);
When changing needClip to true at runtime in debugger erverything works fine. Can you say something to that Code and what can do now?

Greetings
Thorsten
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 solved the problem by changing locally the code in

Code: Select all

StiSegmentPagesDivider.Divide(StiPagesCollection pages, StiExportService service)
I changed line

Code: Select all

var needClip = !(service is StiPdfExportService);
to

Code: Select all

var needClip = true;
Is it possible to provide StiPdfExportSettings with a property NeedClip in the fututre so that a developer can configure the Clip-Behaviour himself?

Thanks and 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 »

This post feels like a soliloquy :-)
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by Lech Kulikowski »

Hello,

Thank you for your information about the solution.

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 »

My question again: Is it possible to provide StiPdfExportSettings with a property NeedClip in the fututre so that a developer can configure the Clip-Behaviour himself?
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by HighAley »

Hello, Thorsten.

Sorry, for taking so long to reply.

We have made necessary changes in our export.
You don't need to set any option, export will work as expected by default.

This improvement will be available in our next build that is planned for the end of September.

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 »

Hello HighAley,

great to hear that! I will watch for that Topic in the release notes of the next updates! Thanks for you Support...

Thanks
Thorsten
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem PDF-Export with StiSegmentPagesDivider.Divide

Post by HighAley »

Dear, Thorsten.

We are always glad to help you.
Let us know if we can do anything else for you.

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 »

Hello HighAley,
This improvement will be available in our next build that is planned for the end of September.
Any new Information about the release date of your next update build?

Thanks
Thorsten
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