Adding Company Picture to RDLC report Header

westry016westry016 Member Posts: 15
edited 2012-11-05 in NAV Three Tier
Hi,

I am new RTC and even more so to RDLC services.

I am trying to add the picture from the Company information Table to the header of a report.

To be exact report ID 411.

I have come across this link
http://blogs.msdn.com/b/nav/archive/200 ... eport.aspx

and folowed the steps as described.
I also used the Microsoft Dynamics 2009 Report Design manual which is very similar to the link above.

And I still cant get the Picture to display. ](*,) ](*,) ](*,)

Could anybody please assist me with this.

Thanking You in anticipation
Ryan West

Comments

  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    westry016 wrote:
    Hi,

    I am new RTC and even more so to RDLC services.

    I am trying to add the picture from the Company information Table to the header of a report.

    To be exact report ID 411.

    I have come across this link
    http://blogs.msdn.com/b/nav/archive/200 ... eport.aspx

    and folowed the steps as described.
    I also used the Microsoft Dynamics 2009 Report Design manual which is very similar to the link above.

    And I still cant get the Picture to display. ](*,) ](*,) ](*,)

    Could anybody please assist me with this.

    Thanking You in anticipation
    Ryan West

    do you get any errors?
    ~Rik~
    It works as expected... More or Less...
  • westry016westry016 Member Posts: 15
    No the report saves and compiles.

    What I did however do was make the hidden text boxes visible and the text box on the body shows a error.
  • mihail_kolevmihail_kolev Member Posts: 379
    In the report dataset is there a value(*) in the picture field?
    -Mihail- [MCTS]
  • westry016westry016 Member Posts: 15
    edited 2011-06-21
    I am not quite sure I understand what what you mean.

    In the table yes there is a *
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    edited 2011-06-21
    westry016 wrote:
    I am not quite sure I understand what what you mean.
    did you check in the table or in the report dataset?
    ~Rik~
    It works as expected... More or Less...
  • westry016westry016 Member Posts: 15
    After pressing CTRL+ALT+F1

    the value diplayed in the dataset is <> which I presume is nothing
  • westry016westry016 Member Posts: 15
    this the value of the text box which gives me the error.

    =Convert.ToBase64String(Fields!CompanyInfo_Picture.Value)

    This is the textbox which is part of the body
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    westry016 wrote:
    After pressing CTRL+ALT+F1

    the value diplayed in the dataset is <> which I presume is nothing

    yes it's nothing. so the dataset didn't see the picture.
    check the following:
    1. you have done a calcfields for the picture field in onprereport trigger
    2. in classic client you used a picture box (not image)
    ~Rik~
    It works as expected... More or Less...
  • westry016westry016 Member Posts: 15
    1. On the prereport trigger
    I have the following Code

    IF CompanyInfo.GET THEN
    CompanyInfo.CALCFIELDS(Picture);


    2. The control being used a Picture Box
  • Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    Try to create a new section (Header) in the classic client for the dataitem Vendor Ledger Entry.
    Put here the picture box.
    Now check if the value in the dataset is changed from <> to *
    ~Rik~
    It works as expected... More or Less...
  • westry016westry016 Member Posts: 15
    Try to create a new section (Header) in the classic client for the dataitem Vendor Ledger Entry.
    Put here the picture box.
    Now check if the value in the dataset is changed from <> to *


    I add the extra Picture to the new header as suggested but the result is still the same <>.

    I find it strange because the Logo does not even appear on classic client report.
  • westry016westry016 Member Posts: 15
    Hi All,

    Thanks for your help I managed to get it working.
  • Amolkbhad23Amolkbhad23 Member Posts: 46
    hi,
    can you please tell us what you do in that report so that your picture issue in report is resolved, because i am also have same problem.
    please tell me same steps so that i can follow same.

    thanks in advance.
  • rico1931rico1931 Member Posts: 295
    hi,
    can you please tell us what you do in that report so that your picture issue in report is resolved, because i am also have same problem.
    please tell me same steps so that i can follow same.

    thanks in advance.


    Did you already go to Sales&Marketing>Setup> Sales & Receivables Setup and make sure that the "logo Position on Document" is set to something?
    -rico1931
Sign In or Register to comment.