PC Review


Reply
Thread Tools Rate Thread

Crystal Report sort of problem

 
 
MadCrazyNewbie
Guest
Posts: n/a
 
      16th Aug 2004
Hey Group,

Sorry to be a pain yet again. I problem that i don`t know how to get
around

I use the following connection class on my project:

Private Shared mConnectionsstring As String =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
Private Shared mLocation As String
Private Shared connArray As ArrayList
Public Shared Sub setString(ByVal ind As Integer)
Dim connArray As New ArrayList()
connArray.Add("J:\Excellence.Net\LiveNetDB.mdb")
connArray.Add("J:\Excellence.Net\DevNetDB.mdb")
connArray.Add("C:\Program Files\Excellence.Net\LiveLocalDB.mdb")
mLocation = connArray(ind).ToString
End Sub
Public Shared ReadOnly Property [String]() As String
Get
Return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mLocation & ";"
End Get
End Property

and then I use:
Connection.setString(Me.cboSelectDB.SelectedIndex) on my Login form and
<WhateverDataConnect>.ConnectionString = Connection.String
on the load event of every other form.

And the following to print my Crystal Reports:

rptForm.Text = "Excellence.Net - Fax Meter Reading Report" 'Set the form's
titlebar
rptForm.CRVReportPrint.ReportSource = New FaxMeterReadings() 'Tell the
viewer which report to display
rptForm.CRVReportPrint.RefreshReport() 'Refresh the viewer
rptForm.ShowDialog() 'Show the report

How do I get my report Print to determin which database it using? I.E -
Network or Local? All I can find on my Crystal report is the Set Location,
to which I have to choose a databse.

Many Thanks again for any help

Regards
MCN


 
Reply With Quote
 
 
 
 
MadCrazyNewbie
Guest
Posts: n/a
 
      16th Aug 2004
Hey i`ve found this but im so confused, i ain`t got a clue what it means, is
this what I should be looking into?

http://support.businessobjects.com/l...s/c2011464.asp

Any help would be much appriciated

Thanks
MCN

"MadCrazyNewbie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hey Group,
>
> Sorry to be a pain yet again. I problem that i don`t know how to get
> around
>
> I use the following connection class on my project:
>
> Private Shared mConnectionsstring As String =
> "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
> Private Shared mLocation As String
> Private Shared connArray As ArrayList
> Public Shared Sub setString(ByVal ind As Integer)
> Dim connArray As New ArrayList()
> connArray.Add("J:\Excellence.Net\LiveNetDB.mdb")
> connArray.Add("J:\Excellence.Net\DevNetDB.mdb")
> connArray.Add("C:\Program Files\Excellence.Net\LiveLocalDB.mdb")
> mLocation = connArray(ind).ToString
> End Sub
> Public Shared ReadOnly Property [String]() As String
> Get
> Return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mLocation &

";"
> End Get
> End Property
>
> and then I use:
> Connection.setString(Me.cboSelectDB.SelectedIndex) on my Login form and
> <WhateverDataConnect>.ConnectionString = Connection.String
> on the load event of every other form.
>
> And the following to print my Crystal Reports:
>
> rptForm.Text = "Excellence.Net - Fax Meter Reading Report" 'Set the form's
> titlebar
> rptForm.CRVReportPrint.ReportSource = New FaxMeterReadings() 'Tell the
> viewer which report to display
> rptForm.CRVReportPrint.RefreshReport() 'Refresh the viewer
> rptForm.ShowDialog() 'Show the report
>
> How do I get my report Print to determin which database it using? I.E -
> Network or Local? All I can find on my Crystal report is the Set Location,
> to which I have to choose a databse.
>
> Many Thanks again for any help
>
> Regards
> MCN
>
>



 
Reply With Quote
 
BrianDH
Guest
Posts: n/a
 
      16th Aug 2004
This may be of no help but may I suggest... connect to your DB by way of a
Web Service / Stored Poc.

Then changing DB is a snap.

just a thought

B


"MadCrazyNewbie" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hey i`ve found this but im so confused, i ain`t got a clue what it means,

is
> this what I should be looking into?
>
> http://support.businessobjects.com/l...s/c2011464.asp
>
> Any help would be much appriciated
>
> Thanks
> MCN
>
> "MadCrazyNewbie" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hey Group,
> >
> > Sorry to be a pain yet again. I problem that i don`t know how to get
> > around
> >
> > I use the following connection class on my project:
> >
> > Private Shared mConnectionsstring As String =
> > "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
> > Private Shared mLocation As String
> > Private Shared connArray As ArrayList
> > Public Shared Sub setString(ByVal ind As Integer)
> > Dim connArray As New ArrayList()
> > connArray.Add("J:\Excellence.Net\LiveNetDB.mdb")
> > connArray.Add("J:\Excellence.Net\DevNetDB.mdb")
> > connArray.Add("C:\Program Files\Excellence.Net\LiveLocalDB.mdb")
> > mLocation = connArray(ind).ToString
> > End Sub
> > Public Shared ReadOnly Property [String]() As String
> > Get
> > Return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mLocation &

> ";"
> > End Get
> > End Property
> >
> > and then I use:
> > Connection.setString(Me.cboSelectDB.SelectedIndex) on my Login form and
> > <WhateverDataConnect>.ConnectionString = Connection.String
> > on the load event of every other form.
> >
> > And the following to print my Crystal Reports:
> >
> > rptForm.Text = "Excellence.Net - Fax Meter Reading Report" 'Set the

form's
> > titlebar
> > rptForm.CRVReportPrint.ReportSource = New FaxMeterReadings() 'Tell the
> > viewer which report to display
> > rptForm.CRVReportPrint.RefreshReport() 'Refresh the viewer
> > rptForm.ShowDialog() 'Show the report
> >
> > How do I get my report Print to determin which database it using? I.E -
> > Network or Local? All I can find on my Crystal report is the Set

Location,
> > to which I have to choose a databse.
> >
> > Many Thanks again for any help
> >
> > Regards
> > MCN
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sort Error in Crystal Report Code with VS 2005 Rick Microsoft C# .NET 0 1st Feb 2010 04:52 PM
Sending Crystal Report to Network Print Mailbox While Bypassing Crystal Report Viewer. John Smith Microsoft VB .NET 0 17th Jan 2007 04:17 PM
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet) Alex Stevens Microsoft Dot NET Framework Forms 1 30th Jun 2004 12:34 PM
Change Crystal Report Zoom Level using percentages in Crystal Report Viewer (Dotnet) Alex Stevens Microsoft Dot NET 1 30th Jun 2004 12:34 PM
Crystal Report Top N / sort have to change programitically from vb.net John K Microsoft VB .NET 1 12th Mar 2004 03:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 AM.