I am experiencing some problems with DiscardSavedData.
I am using CrystalReport 8.0 with RDC and when i wish that every time that i am opening my report to refresh all the data from it. With tha older versions of crystal report that worket with ocx I did not have any problem with this.
On the design on the menu from the right click i haved found Desisgner/Defaul Settings... and there i have'd found Reporting. In there is a check box named Discard Saved Data When Loading Reports. It looks ol ok but it wont stay clicked. After i run my aplication, i am going back and it is not check.
I haved also tryed to pu some code but with no result. It seeams that it doesn't worck like the older versions. It give's me the falowing mesage "Permision Denied". Probably i did not put the code vhere it should be and i do not thinck that it is enought (i din not use true or false).
private Sub Section3_Format(byval pFormattingInfo as Object)
Raport8.DiscardSavedData
End Sub
How do I open the password protected .mdb when there is sub reports in the Crystal Report. I got it to work on reports which contains no subreports. The problem is with the ones thats got subreports. It crashes the calling program.
I understand you but thet problem was that the "Discard Saved Data When Loading Reports" doesn't stay check. I am checking it, saving my project but after i am running my aplication the "Discard Saved Data When Loading Reports" it is uncheck. Strange ?
I have also tryed with some code but it does not have any effect. I haved put my code at my report initialization "report.discardsaveddata" but no efect. Strange Again ?
I alsow tryed and put the same code into the buton that triegers the printing. No luck again.
Could this be a bug ?
Did i use the code right ?
I did not declared my report source trow code, could this help ? If so please send me a piece of source to understand how to do that.
Run-time error '20535'
Error in file C:\VB Projects\Birds\History.rpt
Unable to connect: Incorrect session parameters.
I open the database file in the app with:
Set dbs = OpenDatabase("C:\VB Projects\Birds\Ringneck.mdb", False, False, ";pwd=mypassword")
I then call the report as follows:
CrptHistory.Destination = crptToWindow
CrptHistory.Formulas(0) = "blah blah blah" //26 of them
CrptHistory.LogonInfo(0) = "dsn=;uid=;pwd=mypassword;dsq="
CrptHistory.ReportFileName = "C:\VB Projects\Birds\History.rpt"
CrptHistory.Action = 1
I have a DLL that shows the Print Preview screen of the Crystal Report. The problem is that the Preview screen just flashes and then disappears after a few seconds. I think this may be because the DLL "dies" after the ASP page calls it.
I tried creating a looping procedure with a timer that dictates the length of time that the preview screen should show. This works however, if the user presses the close button of the Preview Screen (top right of the screen), the screen refuses to close since the timer procedure continues to loop. I tried placing a wind_ClosePrintWindow event for the window that houses the report. However, it seems that the proram still finishes the looping before handling the close event.
i have an application made from vb6 that reads data from a text file and export it to an access table. Can i use crystal report designer version and design a report/graph reading from that table (FYI, the table will change its values everytime a different text file is read from).
and is it possible if i just save the report in a folder and execute the file independently by calling it from vb?
if you have a much more simple solution then please advice me on this. Really appreciate your time.
Well, any how after you convert your text file to access table, the table will be a same name and same structure, in between conversion process, crystall report don't know what it happens, it's happen normal updates. you can use crystal report for graph no problem.
yes, it's possible you can save rpt file in your folder after you can call from vb.
Bookmarks