Oictures in Documents

bhuber
Member Posts: 78
Anyone know if it is posible to place a picture on a document such as a company logo on a sales invoice? If so, how would you do it.
0
Comments
-
Yes it's possible.
This is usually how I do it :
1/ Go to the Company Information card and select
Picture/Import (Select your logo file in the Bitmap format)
2/ On your report drag and drop a PictureBox control on your Sales Invoice Report, set the "SourceExpr" property to
CompanyInfo.Picture
3/ On the "PreDataItem" Trigger of your report you will need
to do CompanyInfo.CALCFIELDS(Picture);
(Just after the CompanyInfo.GET)
tarek_demiati@ureach.com0 -
In addition, I would like to mention two points:
1. Make sure you save your picture as RLE compressed bitmap to save space. Not too many graphic programs allow you to do this, but at least PaintShop Pro (see www.jasc.com for free evaluation copies) can do it.
2. Use the capability of Navision to translate "real world size" into picture box size. Real world size is the setting that translates the number of points in the bitmap into centimeters (or inches). When this parameter is set, you can create the picture in the size that is needed to print it in high resolution (i.e. 600 dpi), and still have it fit in the picturebox on screen. Knowing the resolution, Navision can do this size translation.
For your interest, I have developed a Navision solution that can set the resolution parameters for you. It reads any directory you specify (through a standard Windows file dialog), shows all the BMP's present, shows the resolution, allows you to preview the picture (also showing Navision picturebox width and height dimensions for it), and -of course- allows you to set the resolution at 150, 300 or 600 dpi (the usual printer resolutions) for one or more files in one pass. It is in final beta test at a few people now, but if you need it urgently, drop me a mail to send it to you. It will be made available for download on this site soon.
John Tegelaar0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions