Options

Dynamically choose company logo in reports

shyamraooshyamraoo Member Posts: 38
Hi,

One of our client want to print the company logo in sales invoice report depends on sell to customer field dynamically.

I have written code for this and i need know in source exp of picture box how to use IF loop.

for ex IF Customer.Picture <> '' THEN CompanyInfo.Picture ELSE Customer.Picture;

if the customer rec does not have any picture value it should print company information picture.. how to define this.. am unable to assign BLOG field to any variable please help me on this.

Thanks in advance,

Shyam Kumar N
Regards,

N.Shyam Kumar

Comments

  • Options
    tinoruijstinoruijs Member Posts: 1,226
    You should create 2 pictureboxes with different sourceexpr.
    Like standard NAV did in document reports like sales invoice. In Sales Setup you can choose if you want the logo left, center or right.
    In the reports intself you can see how MS uses this.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.