show empty space if no logo is selected on invoice RTC.

matthewtaingmatthewtaing Member Posts: 52
edited 2012-06-07 in NAV Three Tier
Hi,

I've amended the standard report 206 and moved the logo higher as depicted in the attachment "R206 RDLC layout 1". How do i make the space that the logo occupies to always show eventhough it is setup as to show no logo in the sales & receivables setup as the invoice will be printed on a pre-printed form with their own header section when no logo is selected. Currently if i select show no logo then the report will start rendering the header with the fields below the logo leaving no space for the preprinted header.

Thanks

Answers

  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    Have you already tried to put controls under picture in a rectangle?
    In this way they should not move...
    ~Rik~
    It works as expected... More or Less...
  • matthewtaingmatthewtaing Member Posts: 52
    Yes, i've tried putting a rectangle covering the whole header area and setting outputelement to always instead of auto for the rectangle and it doesn't work.
  • clauslclausl Member Posts: 455
    Do the following:

    1. Insert Textbox with same height as the logo you are inserting in the report. I.e. I'm using Paint.NET to see the dimensions of the logo.
    This is important if you have the "Sizing" property set to "AutoSize". If you the "Sizing" property set to "Fit", you can ignore the Paint.NET part and just use the size of the image control.

    2. Now mark the Image control and the new TextBox you just added.

    3. Hit "Align Tops" in the Layout toolbar. Your Image control and new Textbox are now aligned.

    4. Open the Expression of the Textbox and write "Hidden Text"

    5. Change the font to "White"

    6. Right click the TextBox and send in all the way to the back.

    7. Build, Save and Compile

    Now when you print the report with or without logo you will have your empty space.


    You can find a report with this example here:
    in TXT, FOB and PDF

    BTW you might notice that the report looks much nicer than the standard 206 report in NAV 2009. I have applied the New UX Report Guidelines to it :)
    These Guidelines are found here:http://blogs.msdn.com/b/nav/archive/2012/01/31/new-report-ux-guidelines.aspx

    /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 :-)
  • matthewtaingmatthewtaing Member Posts: 52
    That works great, thank you very much Claus.
  • clauslclausl Member Posts: 455
    My pleasure :D
    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.