Hi,
I've written an app that creates a pdf from a crystal report.
It works perfectly on the 32-bit machine , but export incorrect data on 64-bit machines.data unsorted and repeated
code used
Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportClass
rpt= New Rpt_Ch14_1() ' My report
MyCommand.Connection = myConnection
MyCommand.CommandText = comm
MyCommand.CommandType = CommandType.Text
myDA.SelectCommand = MyCommand
myDA.Fill(myDS.Tables(0))
Dim dv As DataView = myDS.Tables(0).DefaultView
rpt.SetDataSource(myDS)
rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Application.StartupPath & "\Temp_PDF\Rpt_Ch14_1.pdf")
an important Note :
in case of using CrystalReportViewer .. It Exports Pdf Correctly in both 32-bit & 64-bit machines
Thanks In advance
and Sorry For Poor English