facing problem at making edit report in navision 5.0

ashishaashisha Member Posts: 60
i have a report i want to add picture in the top of the report.please help me how i can do this.actually report is existed in navision 5.0.if any one help me then please help me.

Comments

  • DenSterDenSter Member Posts: 8,305
    You put a CALCFIELDS command in the OnAfterGetRecord trigger, and set the field as the SourceExpr of a picture box control.
  • ashishaashisha Member Posts: 60
    DenSter wrote:
    You put a CALCFIELDS command in the OnAfterGetRecord trigger, and set the field as the SourceExpr of a picture box control.



    actually i added companyinformation.calcfields(companyinformation.picture) but i am not getting logo of the company.even in another report using the same code logo is appearing .please help me where i wrong
    Also please tell me i am going in right direction or not give me some written code help so im can use this .
  • ara3nara3n Member Posts: 9,256
    Make sure you have a picture loaded in the company information table.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ashishaashisha Member Posts: 60
    ara3n wrote:
    Make sure you have a picture loaded in the company information table.

    i am using this code on predataitem trigger


    CompanyInformation.GET('');
    CompanyInformation.CALCFIELDS(CompanyInformation.Picture);

    picture field is defined in company information table whose type is blob ansd subtype is bitmap.

    using the same code on custmer statement report logo is appearing but for credit memo report report using the same code picture is not appearing.
    Please help me .
  • ara3nara3n Member Posts: 9,256
    do you add a picture box in the section and set the sourcexp to companyinformation.picture?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ashishaashisha Member Posts: 60
    ara3n wrote:
    do you add a picture box in the section and set the sourcexp to companyinformation.picture?
    how i can add a picture box in a report.

    please tell me where is section part of report how i can add a picture box in this.
  • ara3nara3n Member Posts: 9,256
    design the report. Click on View->Section. Click on toolbox. Click on picture box. add it to the header. right click on the picture box and click on properties. Find Property Sourceexp. Set the value to
    CompanyInformation.Picture.
    Ahmed Rashed Amini
    Independent Consultant/Developer


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