Picture in Report doesn't appear
Kappe
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
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
Kappe
0
Comments
-
Just to be sure:
What control are you using in the report? PictureBox?
Chris0 -
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
NicoleProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0 -
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___________________________________________
Kappe0 -
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/protakt0 -
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___________________________________________
Kappe0 -
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
0 -
Try to use another printer driver. We already had some strange effects with some printer drivers and NAvision reports
Chris0 -
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
NicoleProTAKT Projekte & Business Software AG
Microsoft Dynamics NAV Partner
Bad Nauheim, Germany
http://www.protakt.de
http://twitter.com/protakt0 -
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...0
-
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___________________________________________
Kappe0 -
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.0 -
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 (.) "0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions


