extra page in print layout

kabrocokabroco Member Posts: 111
edited 2012-10-18 in NAV Three Tier
Hello,

I modified report 208 and modified the corresponding layout.
And now I get a second page printed when I print the layout.
I tried to find what caused this, worked with colors, deleted tables an text boxes, checked the report properties. I made those the same size as a report that did fit on one page.

I added a new table Sales lines, to show the quantities that were ordered but not shipped.
I did retrieve the lot numbers earlier to show them in the sales line.

Sales Shipment Line - OnPreDataItem()
TrackingSpecCount := ItemTrackingMgt.RetrieveDocumentItemTracking(TrackingSpecBuffer2,"Sales Shipment Header"."No.", DATABASE::"Sales Shipment Header",0);
TrackingSpecCount :=0;
Left the rest depending on showing the ShowLotSN boolean.

I'm not sure the report 'sees' a second page because the page number on page 2 is still 1.

Any suggestion where to look?

kabroco

Answers

  • kabrocokabroco Member Posts: 111
    This is the layout, maybe this helps.
  • clauslclausl Member Posts: 455
    While doing your modifications it looks like you have increased the body size. RLDC report behaves a bit like Excel, where it possible to add columns and columns, but when printing all these columns don't necessarily fit on one page.

    So select the body and write i.e. 1cm in the "Width" property value in Size, and hit Enter. This will decrease the Body size minimum size possible.
    This should fix your problem, if not, pay attention to Margins in Report Properties. If Body Width Size is more that 21cm you will get 2 pages.

    /Claus Lundstrøm
    Claus Lundstrøm | MVP | Senior Product Manager | Continia.com
    I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
    I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
  • kabrocokabroco Member Posts: 111
    Hello Claus,

    thank you for your answer.
    But sorry, it did not solve the problem. I checked the sizes several times. :-k
    So, maybe any other suggestions?

    Kabroco
  • kabrocokabroco Member Posts: 111
    Hello Claus and Steven,

    Steven solved the problem, =D> the new dataitem Sales Lines was not correctly indented. It had to go one place to the right, same level als the sales shipment lines. In this way there was not anymore an OutputNo = 0 in the dataset. This led to a new extra page in RTC.

    Thank you both.

    Kabroco
  • clauslclausl Member Posts: 455
    Perfect, Steven Renderes is the man :)
    Claus Lundstrøm | MVP | Senior Product Manager | Continia.com
    I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
    I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
Sign In or Register to comment.