Skip to Content
author's profile photo Former Member
Former Member

Login Failed... after I save the report for x reason

Hi,

Very strange, I have a small application that open and run a crystal report XI and this Windev program (like VB) will modify the report value connection to SQL with the setlogOnInfo... at this point everythings is good and work correctly but if I open the report with Crystal and just do a small modification like move a text and save the report the application will show me a Login Failed?? I have to copy back a backup to make the application work again... and if a try the report in crystal not error ?

I have the same error if a create a new report and try to make the programm use it

the program is very simple:

Oreport = pautOappli>>OpenReport (fCurrentDir()+"\Item.rpt")

FOR i = 1 TO Oreport>>Database>>tables>>count

Oreport>>Database>>tables>>item(i)>>SetLogOnInfo("SERVER","DB","USER","PWD")

END

AX_ActiveX>>ReportSource = Oreport

AX_ActiveX>>ViewReport

Wow! I just did a test on an other computer that have Crystal XI and create a new report like I done on my computer before and copy this report on my computer and it's working with the application but not if I open it with my crystal and save it

Edited by: AlainC on Aug 23, 2011 4:56 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 23, 2011 at 05:50 PM

    Hello,

    Dev tool are you using? I don't recognize that syntax...

    What version and what report engine are you using, OCX, crpe32, craxdrt ( RDC ) or .NET

    Don

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.