By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

how to open crystal report 2011 .rpt file form access

P: 91
Expand|Select|Wrap|Line Numbers
  1. Dim crpApp As New CRAXDRT.Application 'it create Object of Crystal Application
  2. Dim crpReport As CRAXDRT.Report 'it create Object of Crystal Report
  3. Dim crpsubreport As CRAXDRT.Report  'it create Object of Crystal Report
  4. Dim crpDb As CRAXDRT.Database 'It create Object of Database which was used in crystal Report
  5. Dim crpDbtabs As CRAXDRT.DatabaseTables   'It create Object of Database tables which was used in crystal Report
  6. Dim crpDbtab As CRAXDRT.DatabaseTable  'It create Object of Database table which was used in crystal Report
i have use this code to open and im getting an error in this line
Expand|Select|Wrap|Line Numbers
  1.  If chkSplitPay.Value = True Then
  2.         >crpReport.FormulaFields("SplitPay").Value = 1
  3.         crpExpReport.FormulaFields(37).Value = 1
  4.     Else
  5.         crpReport.FormulaFields("SplitPay").Value = 0
  6.         crpExpReport.FormulaFields(37).Value = 0
  7.     End If
how can i edit this or if i am using the Class wrong some guide
May 22 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.