|
-
November 16th, 2000, 12:59 PM
#1
Crystall Report Control
Hello,
Gurus. I fail to display a list of 20 reports one after another when the user request it in VB5.0 using crystal reports. I get all the reports one after another without any problem on one but on another it simply displays a misleading error messages "Failed to read the font--error number 20525" or some misleading message. The following is code through which I display the reports.
For iRepCount = 1 To TotalReportsCount
CrystalReport2.DiscardSavedData = True
CrystalReport2.ReportFileName = RptPath & "reportname & ".rpt"
strFilter = CrystalReport2.FetchSelectionFormula
strFilter = "(" + strFilter + ") AND (New Criteria)"
CrystalReport2.ReplaceSelectionFormula strFilter
CrystalReport2.PrintReport
Next iRepCount
My question is:
1)Have anyone encountered such a problem?.
2)Is their any limitation on the Crystal Controls that come up at runtime in VB5.0?(But then the problem comes only on certain machines and not on all).
3)Have any one got better way to display some 20 reports one after another?
4)Like in an MDI window we open one after another forms, is it possible to do the same for our client reports.
5)Is this an issue with number of ActiveX controls that can be displayed at a time?(Just naive)
An early response will be very much appreciated as I am too close to my deadline.
Thanks,
Regards.
An early
-
November 19th, 2000, 09:27 AM
#2
Re: Crystall Report Control--Pls help
Hello,
Gurus. I fail to display a list of 20 reports one after another when the user request it in VB5.0 using crystal reports. I get all the reports one after another without any problem on one but on another it simply displays a misleading error messages "Failed to read the font--error number 20525" or some misleading message. The following is code through which I display the reports.
For iRepCount = 1 To TotalReportsCount
CrystalReport2.DiscardSavedData = True
CrystalReport2.ReportFileName = RptPath & "reportname & ".rpt"
strFilter = CrystalReport2.FetchSelectionFormula
strFilter = "(" + strFilter + ") AND (New Criteria)"
CrystalReport2.ReplaceSelectionFormula strFilter
CrystalReport2.PrintReport
Next iRepCount
My question is:
1)Have anyone encountered such a problem?.
2)Is their any limitation on the Crystal Controls that come up at runtime in VB5.0?(But then the problem comes only on certain machines and not on all).
3)Have any one got better way to display some 20 reports one after another?
4)Like in an MDI window we open one after another forms, is it possible to do the same for our client reports.
5)Is this an issue with number of ActiveX controls that can be displayed at a time?(Just naive)
An early response will be very much appreciated as I am too close to my deadline.
Thanks,
Regards.
-
November 22nd, 2000, 08:00 PM
#3
Re: Crystall Report Control
I imagine you are either not providing the report something that it needs or the Crystal Report Engine is retaining state inside the loop.
Can you post the actual code? The loop you give just repeats the same action on the same report; I can't reckon why you'd want to do that...
Test the state issue by looping twice over the same code; if the report works the first time but not the second you may want to consider tearing down and re-building the Crystal Report Object (I assuming you are using CRPE and not the ActiveX?)
Cheers,
Wade
-
December 16th, 2000, 05:55 AM
#4
Re: Crystall Report Control
Thanks for the reponse. I do apologize for late reponse. Well,
First the loop, well that's simplified version of the code that I am implementaing in my project. Anyway the loop is in their because their are nearly 17-18 reports on a particular category. And the end users can either print by name by selecting from the drop down box or simply select the all option that will print all the reports conatined in the drop down box.
Second, I am using ActiveX that is shipped with VB5.0
Third, Seagate Software side contained some good information about Raster and non Raster fonts, which helped me gain some insight in to the fonts issue although not totally answering my question. Plus on the client's machine I re-installed the true type fonts, this stem from the fact that it happens only on 1-2 machines while the rest works fine. This solved the problem for me.
I take this opportunity to thank all who have dropped in their valuable suggestions.
Regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|