PDA

Click to See Complete Forum and Search --> : [RESOLVED]VB6.0 with Crystal Report 10


kselvakumar_82
Apr 1st, 2008, 04:42 AM
Hi friends,
Im using VB6.0 with Crystal Report 10 DB: MSACCESS
Please provide some sample coding that connects the report(CR 10) to view the report. I was using crystal report 6 and now i have upgraded to 10. But im getting error as "Unable to load report"
Please help me out in resolving this problem.
THANKS in advance.
Selvakumar

THANKS to all for guiding in using vb6 and cr10 successfully

VBFnewcomer
Apr 2nd, 2008, 03:21 AM
Welcome Selvam :afrog: :wave:
You may require

Crystal Report ActiveX Designer Runtime Library XX (References)
CR viewer component(Components)
May be if you post your existing code, somebody might be able to suggest more...
Goodluck :thumb:

kselvakumar_82
Apr 2nd, 2008, 06:45 AM
THANKS buddy.
I have done that. How to use selection formula. Previously i used in VB coding. For eg:
.SelectionFormula = "trim({table1.Branch})='" & cmbBR.Text & "'"
Now its not accepting.Please guide me.

jggtz
Apr 3rd, 2008, 12:10 AM
I imagine that you used OCX to view the reports in Crystal Reports 6, since that the RDC method comes from Crystal Reports 7 until 10.

So in Crystal Reports version 10 the OCX is obsolete

Visit the next links, it could be of some help to you

http://www.mahipalreddy.com/cr/crcodes1.htm
http://technicalsupport.businessobjects.com/cs/forums/thread/7266.aspx

VBFnewcomer
Apr 3rd, 2008, 12:25 AM
Now its not accepting.Please guide me. what are you meaning by this. You don't get the desired records or some error comes out or the report contains all records (i.e. without filtering)...
you might also consider providing the relevant code snipptes (pls use Code Tags)

kselvakumar_82
Apr 3rd, 2008, 01:30 AM
im getting error as Invalid or unqualified reference. The reference i use is crystal activex report viewer 10. Will the report only been showed in form(VB form) or is there any way that the report can be viewed in the application as like the one when viewed in crystal report 6.(a vb form calling the report which is displayed in fresh page like... unlike in CR10 i have used CRViewer whic displays the report in the form itself. I need the report to be displayed not in vb forms.) Guide me please.

VBFnewcomer
Apr 3rd, 2008, 01:51 AM
Will the report only been showed in form(VB form) or is there any way that the report can be viewed in the application as like the one when viewed in crystal report 6. you want to view report made in CR10 inside CR6 :confused:
I need the report to be displayed not in vb forms. Well since you are using VB6 Form is the obvious choice. May be you can try in SSTab....
where else you want to display the report

jggtz
Apr 3rd, 2008, 11:38 AM
In VB6 applications you can use CR10 thru RDC or API and the only way to display the reports is using a CRViewer object inside a VB6 form
Please visit
http://www.mahipalreddy.com/cr/crcodes1.htm
there are some examples that explain the use of CR10 RDC in VB6