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
0
Comments
What control are you using in the report? PictureBox?
Chris
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
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
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
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
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
Mostly if you work at someting to long, you just don't see it anymore. It happens to me all the time
Chris
Greetz
Nicole
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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
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.
RIS Plus, LLC
sometimes it can be another problem, like the picture itself..
I hope you solve it
Bachelor of Business Administration and Information Technology
minor Application Development
" Don't use comma (,) use dot (.) "