Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : How do I setup QODBC Crystal Reports Connection Properties via RDC?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Frequently Asked Questions

 New Topic 
 
 Post Reply 
 How do I setup QODBC Crystal Reports Connection Properties via RDC? 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-03-30 08:32:10

Here is an example:


Private Sub CrystalSetDataSource()

Dim i, j As Integer
Dim Subreport As CRAXDRT.Report

'Set table properties in main report
Call CrystalSetTableProperties_QuickBooks(g_crReport)

'Set table properties in all subreports
With g_crReport
For i = 1 To .Sections.Count
For j = 1 To .Sections(i).ReportObjects.Count
If (.Sections(i).ReportObjects(j).Kind = crSubreportObject) Then
Set Subreport = .OpenSubreport(.Sections(i).ReportObjects(j).SubreportName)
Call CrystalSetTableProperties_QuickBooks(Subreport)
End If
Next j
Next i
End With

End Sub

Private Sub CrystalSetTableProperties_QuickBooks(Report As CRAXDRT.Report)

'Set QuickBooks connection properties
With Report.Database.Tables.Item(1)
.ConnectionProperties.DeleteAll
.ConnectionProperties.Add "DSN", g_vcDSN_QuickBooks
End With

End Sub

 

There a a few constants and variables that would need to be changed for your own use, hopefully they are evident enough.

 

  Top 
 New Topic 
 
 Post Reply 

Jump to