Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Adding Pictures from the Hard Drive Post Reply Post New Topic
Author Message
Enzyme80
Newbie
Newbie


Joined: 19 Jan 2007
Location: United States
Online Status: Offline
Posts: 27
Quote Enzyme80 Replybullet Topic: Adding Pictures from the Hard Drive
    Posted: 08 Apr 2010 at 7:15am
Using the built in Crystal Reports for VS 2005 I can open a report Click Crystal Report > Insert > Ole Object > and grab a bitmap from my hard drive.  This will then print on the report.  However, I cannot figure out how to do this by code.
 
I have a few bitmaps on my C drive.  Through code I want to select which one will print on the report. 
 
This is what I have so far. 
 
dim rptPicObj as pictureobject

rptPicObj = rpt.ReportDefinition.ReportObjects.Item("Picture1")

Now, I don't know if this is correct but this is how I access all of the fields on the report and can add information or text to them.
 
So I have C:\mySig.bmp and I want to put it to a picture on my crystal report any ideas - would perfect to not load it to a dataset.


Edited by Enzyme80 - 09 Apr 2010 at 3:06am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.