Skip to main content

Notifications

Microsoft Dynamics AX forum
Unanswered

SSRS report ax 2012 export to PDF- break page doesn't work properly in some cases

Posted on by Microsoft Employee
Dear AX Users,
Could you please help me in the following issue with report design.
Issue is related to export to pdf or to printer , in some cases break-page doesnt work. When we launch the report to the screen , everything is ok.
The thing is, that on every page we use grouping by for exemple PRODUCT TYPE, on each page records with only given Type should be displayed.
for exemple:
page 1
TYPE A
record 1 , type A field pagebreak in temp table= NO
record 2 , type A field pagebreak in temp table= NO
record 3 , type A field pagebreak in temp table= NO
record 4 , type A field pagebreak in temp table= NO
PAGE BREAK NOW ->
page 2
record 5, TYPE B field pagebreak in temp table= YES
record 6, TYPE B field pagebreak in temp table= NO
record 7, TYPE B field pagebreak in temp table= NO
record 8, TYPE B field pagebreak in temp table= NO
record 9, TYPE B field pagebreak in temp table= NO
...
page 3
record X, TYPE C   , field pagebreak in temp table= YES
…… etc
When we launch the report on the screen, everything is perfect, but when we export it to PDF , or printer , sometimes we have sth like this:

page 1
record 1, type A  -> OK
page 2
record 1, type B -> OK
…...
record 11, type which exceeds 1 page in pdf and record 12, 13 go to third page  -> OK  ( but normally when we have only few records per each page - its working fine, but i was also to find the case when i had 14 record of TYPE B on second and third page -> and it was also okay …. i had break page  before first record of TYPE C, im so confused)
page 3
record 12 , type B  -> OK
record 13, type B   -> OK
AND NOW record 14, type C     -> No page-break !     !Problem!
record 15 , type C 
etc …..
 
Do You have any ideas how to fix this ? 
PageBreak in table1_details_group is defined as BETWEEN and DISABLED AS:  
=iif(Fields!BreakPage.Value = "Yes" ,false, true)
Field PAgeBreak is located in temp table, it's as YES when we encounter next value of enum TYPE in our grouped data
I reallly appreciate your help !
Thanks
 
Categories:
  • udaY-ch Profile Picture
    udaY-ch 4,620 on at
    RE: SSRS report ax 2012 export to PDF- break page doesn't work properly in some cases

    Ignore if tried already. if not, can you try setting the Page break property in the group properties. You will have a property called Page break between each instance of a group.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS report ax 2012 export to PDF- break page doesn't work properly in some cases

    any ideas guys ?:)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SSRS report ax 2012 export to PDF- break page doesn't work properly in some cases

    Przechwytywanie1.PNGDESIGN & AND PDF

    Przechwytywanie1.PNG

    If you need any additional info or screenshots please let me know ….

    Any ideas ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans