on 10-07-2008 1:54 PM
I have an OLE object in my report and want to access its display data, e.g. as a bitmap. How would I go about this?
The "PictureData" attribute of the PictureObject I get is always null. Any thoughts?
Hi,
1)What version of Crystal reports are you using?
2) Do you see this issue in the CR designer? If so, please post to the Report Design forum:
Note that if the issue exists in the CR designer, the issue will exist at runtime also and needs to be resolved in the designer 1st.
3) If this is only happening in a runtime application, specify the CR SDK used and the development language used as well as version of the development language.
Hope that helps!!
Regards
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The information Amit posted above is wrong. We fully support the RAS SDK in .NET. I believe he was thinking about the RDC.
If you want to dynamically change an image at runtime your best option is to add it as a Picture Object. You can go into the properties of the picture object and change the Graphic Location formula to use any picture from a mapped path, UNC, or HTTP path.
Hey there, thanks...
What I want is not to change a picture dynamically but rather to access its picture data. The picture data member however returns null even though the object is showing a picture. With the old crpe32.dll I was able to extract the picture data but this of course is very tiresome to marshal calls to an unmanaged API from C#.
Any thoughts on how to access the picture data with the .NET API?
John Goering
You'll likely need to use the RAS .NET SDK then. You can access the ReportClientDocument through the ReportDocument object.
Check out the Report Application Server .NET SDK using the link below.
HI John,
As far as I know you cant really get any in depth information about the image itself.
You can get items that pertain to it in relation to the report (ie the height, width, etc).
something like
dim boPicObject as New PictureObject
boPicObject = myRasReport.ReportDefController.ReportDefinition.DetailArea.Sections(0).ReportObjects.Item("myPicture")
dim h as Integer = boPicObject.Height
dim w as Integer = boPicObject.Width
Jason
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.