Results 1 to 5 of 5

Thread: Crystal Reports veriable assignment

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2010
    Posts
    80

    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.

  2. #2
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    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
    Option Explicit should not be an Option!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2010
    Posts
    80

    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.

  4. #4
    Frenzied Member
    Join Date
    Mar 2009
    Posts
    1,182

    Re: Crystal Reports veriable assignment

    Without having a look at your code...
    Option Explicit should not be an Option!

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width