satheesmohan
May 19th, 2007, 02:23 AM
Hello,
I am getting the following error message while attempting to print a report.
The code is given below:-
me.CrystalReport1.ReportFileName = App.Path & "\reports\purchaseOrderDupli.rpt"
me.CrystalReport1.sqlQuery = sqlStmt
me.CrystalReport1.parameterFields(0) = "org;" & moduleOrgcode & ";true"
me.CrystalReport1.Connect = "DSN=intentorydsn;UID=sa;PWD=ocols;"
me.CrystalReport1.Destination = crptToPrinter
me.CrystalReport1.Action = 1
----------------------------------------------------------
most of the times I am running my program there is no error.
sometimes the error comes on the first line.
sometimes on the last line.
The client machine is Windows XP.
The crystal report version is 8
I tried many methods found in net, but not succeeded.
some one told to reinstall crystal report
Some one told me to register the ocx manually.
some one asked to use crystalreport1.printreport command
some one asked to declare a variable of type crystalreport control and use it.
Do help me.
Regards,
Sathees
I am getting the following error message while attempting to print a report.
The code is given below:-
me.CrystalReport1.ReportFileName = App.Path & "\reports\purchaseOrderDupli.rpt"
me.CrystalReport1.sqlQuery = sqlStmt
me.CrystalReport1.parameterFields(0) = "org;" & moduleOrgcode & ";true"
me.CrystalReport1.Connect = "DSN=intentorydsn;UID=sa;PWD=ocols;"
me.CrystalReport1.Destination = crptToPrinter
me.CrystalReport1.Action = 1
----------------------------------------------------------
most of the times I am running my program there is no error.
sometimes the error comes on the first line.
sometimes on the last line.
The client machine is Windows XP.
The crystal report version is 8
I tried many methods found in net, but not succeeded.
some one told to reinstall crystal report
Some one told me to register the ocx manually.
some one asked to use crystalreport1.printreport command
some one asked to declare a variable of type crystalreport control and use it.
Do help me.
Regards,
Sathees