Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Relative Path for images into report Post Reply Post New Topic
Author Message
claytonids
Newbie
Newbie


Joined: 22 May 2012
Location: United States
Online Status: Offline
Posts: 2
Quote claytonids Replybullet Topic: Relative Path for images into report
    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
IP IP Logged
CircleD
Senior Member
Senior Member
Avatar

Joined: 11 Mar 2011
Location: United States
Online Status: Offline
Posts: 251
Quote CircleD Replybullet 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.
IP IP Logged
claytonids
Newbie
Newbie


Joined: 22 May 2012
Location: United States
Online Status: Offline
Posts: 2
Quote claytonids Replybullet 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
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet 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
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.