Crystal Reports veriable assignment
I am working on a crystal reports project. for some reason when I assign a path to a variable it returns a number instead of the path. Here is my script
Dim myPich As StdPicture
Set myPich = LoadPicture("C:\Program Files\Denali\Program pics\logo_large.gif")
Set Picture3.FormattedPicture = loadpicture(myPich)
I get the error "File not found '-1627059993'
when i check the variable assignment of "mypich" it shows that number. Where is it coming from ?
funny this is some times it works good and sometimes it assigns the number.:confused:
Re: Crystal Reports veriable assignment
It is the handle to the picture you have previously loaded into memory with the Load Picture function...
i.e.
Set MyPich = LoadPicture(...
So as of this line being executed, you have loaded an image into memory and the MyPich.Picture points to that memory location and this is what you are retrieving when you try...
Set Picture3.FormattedPicture = LoadPicture(MyPich)
To Fix...
Set Picture3.FormattedPicture = MyPich
Good Luck
Re: Crystal Reports veriable assignment
OK resolved that problem thank you. Now I have another. I have 6 pics that need to be loaded dynamically. The first two load but when i try to load the third i get permission denied error.
Re: Crystal Reports veriable assignment
Without having a look at your code...
Re: Crystal Reports veriable assignment
Questions involving Crystal Reports belong here in the Reporting forum. Please don't make me move any more of your threads.