Parsing Blob Value to be displayed in Report Header

jordi79jordi79 Member Posts: 275
edited 2015-01-19 in NAV Three Tier
Hi,

I need to display a barcode blob image in the Header of a report. To do this I need to parse a blob picture to be displayed in Header. And this can be done with SetData and GetData. The problem is SetData and GetData deal with String data type.

I do not know how to convert from String back to Blob to be displayed in Report Footer. I have tried several of the conversion functions such a CByte, but it does not work.

Jordi

Comments

  • ppavukppavuk Member Posts: 334
    convert it to base64 and back, just like images.
  • jordi79jordi79 Member Posts: 275
    Do you mean:

    For SetData-->

    =Code.SetData(Cstr(Convert.ToBase64String(Fields!CompInfoPicture.Value)) + Chr(177) +

    Then I assume for GetData it is just:

    =Convert.ToBase64String(Code.GetData(1, 1))

    ???
  • ppavukppavuk Member Posts: 334
    yeah
  • jordi79jordi79 Member Posts: 275
    Nope. It does not work.
  • ppavukppavuk Member Posts: 334
    It does work for me. On what version are you?
  • ppavukppavuk Member Posts: 334
    jordi79 wrote:
    Do you mean:

    For SetData-->

    =Code.SetData(Cstr(Convert.ToBase64String(Fields!CompInfoPicture.Value)) + Chr(177) +

    Then I assume for GetData it is just:

    =Convert.ToBase64String(Code.GetData(1, 1))

    ???

    of course for get data you need to convert FROM base 64.
  • MarijnMarijn Member Posts: 69
    Inspect a standard report which shows a bitmap like the logo of report 206. You'll come accross any piece of code you need. Just substitute your values.
Sign In or Register to comment.