Picture in Report doesn't appear

KappeKappe Member Posts: 64
Hello

I will print the company logo in an report.
So I imported it in the company information table about the company information form.
There it appears. When I run the Zoom a * is shown in the tablefield.

I used the companyinfo.calcfields(picture), hoe it is explained here on the board.
But the picture still doesn't appear.

When I run Message(companyinfo.picture) a message with * appears.

How can I solve this problem?

Kappe
___________________________________________

Kappe

Comments

  • Christian_FeitlChristian_Feitl Member Posts: 17
    Just to be sure:
    What control are you using in the report? PictureBox?

    Chris
  • ngebhardngebhard Member Posts: 127
    Actually it should work if you use calcfields.

    One idea: check on which data item you're coding "calcfields" is and on which data item you want to shown the picture. Maybe the calcfield is after printing the picture?

    Regards
    Nicole
    ProTAKT Projekte & Business Software AG
    Microsoft Dynamics NAV Partner
    Bad Nauheim, Germany
    http://www.protakt.de
    http://twitter.com/protakt
  • KappeKappe Member Posts: 64
    Hello

    I use a PictureBox.
    Also I use the "calcfields" coding in the OnPreDataItem section.
    I tried it also in the OnInitReport section.
    Other fields out of the company info appear correct in the same section.
    Also I change the size of the picture to 50% of the originl one.

    Kappe
    ___________________________________________

    Kappe
  • ngebhardngebhard Member Posts: 127
    Might be a stupid question, but did you initalize the Company Information before?
    ProTAKT Projekte & Business Software AG
    Microsoft Dynamics NAV Partner
    Bad Nauheim, Germany
    http://www.protakt.de
    http://twitter.com/protakt
  • KappeKappe Member Posts: 64
    Hello

    I tried it with and without initalize.
    But as I wrote - the other informations like companyinfo.name etc. appear in the same section.

    Kappe
    ___________________________________________

    Kappe
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Best thing in these cases is to have someone else have a look at it. If it is not possible for a colleague to help you can mail it to me, or maybe Nicole can have a look at it.

    Mostly if you work at someting to long, you just don't see it anymore. It happens to me all the time :D
  • Christian_FeitlChristian_Feitl Member Posts: 17
    Try to use another printer driver. We already had some strange effects with some printer drivers and NAvision reports

    Chris
  • ngebhardngebhard Member Posts: 127
    That's what I just wanted to say: I need to see what happens to give any further advice. If you want to you can mail it to me.

    Greetz
    Nicole
    ProTAKT Projekte & Business Software AG
    Microsoft Dynamics NAV Partner
    Bad Nauheim, Germany
    http://www.protakt.de
    http://twitter.com/protakt
  • kinekine Member Posts: 12,562
    And on standard invoice is the logo working??? Can you see the logo in Company Info Form??? If no, problem can be in bmp resolution...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • KappeKappe Member Posts: 64
    Hello

    In the Company Info Form I saw the logo allt the time.
    Today I tried the standard invoice. There the logo appears.

    So I compared the code.
    I changed the name of the global and used get instead of init and it works.

    Thank you for your help.

    Kappe
    ___________________________________________

    Kappe
  • DenSterDenSter Member Posts: 8,307
    Kappe:

    Just so you know why it happens...

    When you use the INIT method, Navision creates an empty object in memory that has the structure of a record from the table that your variable is based on. The field values all have their init values, so all boolean fields are set to 'No', unless they are set with an init value of 'Yes'. So, by using the INIT method on the Company Information table, it created a new empty record, it did not retrieve the existing information.

    The GET method is used to retrieve one existing record from the database into the variable that you are using.
  • JopjeJopje Member Posts: 50
    Perhaps it is a stupid comment, but still...
    sometimes it can be another problem, like the picture itself..

    I hope you solve it ;)
    Remco de Jong
    Bachelor of Business Administration and Information Technology
    minor Application Development


    " Don't use comma (,) use dot (.) "
Sign In or Register to comment.