Results 1 to 4 of 4

Thread: Crystal Reports - Upgraded to 8.5, now reports written in 8.0 wont't work!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    California
    Posts
    203

    Crystal Reports - Upgraded to 8.5, now reports written in 8.0 wont't work!!!

    My reports are crashing when I run them on a machine with CR8.5, but they work fine on cr8.0. They crash inside the .DiscardSavedData Routine.


    Does anyone know why or what I can do...

    I call the report.Printout routine and right after I call the
    .DiscardSavedData. The report is still printing out in debug mode.


    Please help. Is my syntax wrong. The help file says I can only use Printout and DislcardSavedData in "formatting idle" mode. I don't know what this this???? The .PrintOut routine works but not the discardsaveddata.


    Thanks,

    Any help is appreciated.


    M

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    What library are you using to connect to crystal???
    CRAXDRT, Crystal Automation, OCX ???

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    California
    Posts
    203
    Craxdrt.dll.... do you know whats wrong?


    I have a report that has four sub reports. The report is called
    IndntRpt.

    IndntRpt.discardsavedata blows up and gives me an error saying that object is no longer connected.???

    but the discard save data in the sub reports work: here is the code:

    IndntRpt.OpenSubReport("VehicleSubReport").DiscardSaveData

    This does not blow up and it discards my data.


    What is the problem with the IndntRpt.DiscardSaveData???

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Are you setting the connection (maybe with SetLogonInfo) for each subreport? Because you should connect to the server for each subreport. Also, I usually use an ADO recordset to pass to Crystal. You would have to change the report template in the CR Designer though.

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