Print Page | Close Window

Relative Path for images into report

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=16522
Printed Date: 18 Apr 2025 at 7:09pm


Topic: Relative Path for images into report
Posted By: claytonids
Subject: Relative Path for images into report
Date Posted: 22 May 2012 at 2:07pm
We are converting to Crystal 2008 that is included in VS 2008 and using VB 2008.  Some of our reports need to have images inserted that are signatures.  These signatures cannot be directly from DB because they are encyprted and need converted first.  I would like to have the new VB App that brings up this report with signatures pathed from relative of the Application placement and in the Reports directory.  Example.  Program will be launched from a VC ++ application from lets say  "MY APP DIR"/Reports .  The bitmaps will be placed in the Reports directory.  Right now I have them to C:\temp but I want them in the Reports directory.  Cannot be C: drive and path because if in windows 7 and x86 directory etc.  just having them relative to the execution path of the app.
 
thanks



Replies:
Posted By: CircleD
Date Posted: 22 May 2012 at 11:22pm
You should be able to insert an image using the "Insert Image" button.Just follow the prompts to tell Crystal what folder they are in and where you want them.I don't know about them being encrypted though,you may have a problem there.


Posted By: claytonids
Date Posted: 23 May 2012 at 3:17am
Thank you CircleD , I know I can make it fixed or a static directory but can I make it relative to execution of the VB 2008 EXE that includes the crystal report?  Based on different versions of windows and they may run on win 7 64 or etc.  The application will be placed in different directories or maybe installed in different dirs and I would like the images to be placed in our application folder.

thanks again


Posted By: lockwelle
Date Posted: 23 May 2012 at 6:45am
why not make a simple datatable, have you app get the image, decipher it and place it in the table, then push the table to the report.  If there were multiple images, you can put the linking information in the table and link the table into the rest of the report.
 
When you push the data, where it is located is immaterial to CR. Your app has to be able to find it and assemble it, and then hand it to CR to display. Obviously, I am a big proponent of this method. The app knows where the data is, can manipulate it if needed, and finally pass it to the report.
 
HTH



Print Page | Close Window