Logos on RTC Reports

SambSamb Member Posts: 18
edited 2008-12-31 in NAV Three Tier
Are pictures not displayed in reports run on the RTC. In classic I can get the company logo to appear on Sales Documents but when the same report is run through the RTC the logo goes away. Was this just forgotten or does the new layout not render the picture?

Comments

  • ara3nara3n Member Posts: 9,255
    You are right that they are missing from RTC. Main reason is that you cannot have an image in header or footer with source set to database.

    Which means we have to modify the report. View the Layout click on Report Menu and select Embeded images. Add your image to the report. Then add an image to the report and select the source as embedded and select the value from the dropdown the file name you uploaded.

    I'm sure there are other ways, but haven't searched for other ways yet.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • BeliasBelias Member Posts: 2,998
    ara3n wrote:
    You are right that they are missing from RTC. Main reason is that you cannot have an image in header or footer with source set to database.

    Which means we have to modify the report. View the Layout click on Report Menu and select Embeded images. Add your image to the report. Then add an image to the report and select the source as embedded and select the value from the dropdown the file name you uploaded.

    I'm sure there are other ways, but haven't searched for other ways yet.
    Hey, this works on my NAV... :-k
    i put a textbox with sourceexpr (companyinfo.picture) visible=no and i used it in the rdlc...source = database mime type = bmp value = [the dataset value]

    i am using visual web developer 2008 express
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • ara3nara3n Member Posts: 9,255
    Do you have the picture on Page header or body section? It works in body section but not on page header.

    Here is the error.

    Microsoft Dynamics NAV Classic
    Error while validating RDL content:
    An error occurred during local report processing.

    The definition of the report 'Main Report' is invalid.

    The Value expression for the image ‘image1’ refers to a field. Fields cannot be used in page headers or footers.



    OK
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • BeliasBelias Member Posts: 2,998
    I think I have misunderstood your post...now it's clear, the image is in the body section =;
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • ara3nara3n Member Posts: 9,255
    Belias wrote:
    I think I have misunderstood your post...now it's clear, the image is in the body section =;

    Speak to the hand? :-k
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • BeliasBelias Member Posts: 2,998
    i never used it...i think this could be the first time...i don't know what does it mean, anyway =;
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • ara3nara3n Member Posts: 9,255
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • BeliasBelias Member Posts: 2,998
    websensed :cry:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • gedasgedas Member Posts: 87
    Hi

    Standard NAV 2009 report 205 has picture on sales header. It could be placed how it is defined in NAV setup.
    Or i missunderstood and you are talking about different things?
    GB
  • ara3nara3n Member Posts: 9,255
    Yes, thanks for the find.
    they are doing the same trick that they are doing with GetData function they are adding non visible text boxes and calling set picture function and passing the picture as an object.
    then on actual picture they are converting it using =Convert.FromBase64String(Code.GetPicture(2)).

    One thing I don't like in NA version is that those non visible text boxes are squished so that you can't see them. I don't' know why they did that.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.