|
-
Dec 13th, 2006, 09:16 AM
#1
Thread Starter
Frenzied Member
[Resolved] [2005] Getting Started With Crystal XI
Hi All,
I have only just got used the new way of code crystal reports in VB6 and now I want to code it in VS2005 and don't know where to start. I have seen examples where you populate in code a dataset and get the report to point and display the results but I want to pass and SQL string to my report and use the report viewer to show the report. I also want to be able to set the path of each table in the report.
Can anyone please help with this, I don't have a clue how to get started.
Cheers very much in advance,
Jiggy!
Last edited by Jigabyte; Dec 13th, 2006 at 01:09 PM.
-
Dec 13th, 2006, 10:12 AM
#2
PowerPoster
Re: [2005] Getting Started With Crystal XI
Go to the .NET forum. There have been many examples placed there.
-
Dec 13th, 2006, 12:46 PM
#3
Thread Starter
Frenzied Member
Re: [2005] Getting Started With Crystal XI
Hi Mate,
I managed to sort it my looking at my code in VB6. Its not that much different.
Cheers,
Jiggy!
PS. If anyone wants the code please let me know and I will post it!
Last edited by Jigabyte; Dec 13th, 2006 at 01:09 PM.
-
Dec 13th, 2006, 11:35 PM
#4
Hyperactive Member
Re: [2005] Getting Started With Crystal XI
 Originally Posted by Jigabyte
PS. If anyone wants the code please let me know and I will post it!
could you please post your sample code....
thanks
-
Dec 14th, 2006, 03:17 AM
#5
Thread Starter
Frenzied Member
Re: [Resolved] [2005] Getting Started With Crystal XI
VB Code:
Public crxReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Public crxFormulaFields As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinitions
Public crxFormulaField As CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinition
Dim iTables As Integer
crxReport.Load(sReportPath & "Test.RPT", CrystalDecisions.Shared.OpenReportMethod.OpenReportByDefault)
For iTables = 0 To crxReport.Database.Tables.Count - 1
With crxReport.Database.Tables(iTables)
.Location = sDataPath & "Morrisons.MDB"
End With
Next
crxMain.ReportSource = crxReport
If Destination = enumPrinterDestination.crxPreview Then
crxMain.Show()
Else
crxMain.PrintReport()
Me.Close()
End If
-
Dec 14th, 2006, 12:24 PM
#6
Hyperactive Member
Re: [Resolved] [2005] Getting Started With Crystal XI
Hello Jigabyte,
i am trying to get started with cs; could you please help me with my post below:
http://www.vbforums.com/showthread.php?t=442317
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
|