Hi,
I have developed the application in VS.NET with CR.NET. Basically, user enters some parameters for the report, those parameters are sent to the stored procedure, dataset is filled and report is generated and previewed in the Crystal Viewer. After that user clicks Print button, chooses Adobe pdf printer(Adobe Acrobat 6.0 is installed on the machine) and exports the report to a pdf file.
My question is: how can I automate this procedure in code?
For example, all input parameters for the report will be saved in the database, path to pdf file will be saved in the database, user will just click the button and report will be created from the predefined parameters and exported with Adobe pdf printer to the path name saved in the database. No dialog prompt for the file name, no preview of the report.
Is there a way to achieve this?
I know there are export capabilities in CR.NET, but I want this application to be able to print to pdf through Adobe Acrobat which is already present on the machine.
Regards
Janez
I have developed the application in VS.NET with CR.NET. Basically, user enters some parameters for the report, those parameters are sent to the stored procedure, dataset is filled and report is generated and previewed in the Crystal Viewer. After that user clicks Print button, chooses Adobe pdf printer(Adobe Acrobat 6.0 is installed on the machine) and exports the report to a pdf file.
My question is: how can I automate this procedure in code?
For example, all input parameters for the report will be saved in the database, path to pdf file will be saved in the database, user will just click the button and report will be created from the predefined parameters and exported with Adobe pdf printer to the path name saved in the database. No dialog prompt for the file name, no preview of the report.
Is there a way to achieve this?
I know there are export capabilities in CR.NET, but I want this application to be able to print to pdf through Adobe Acrobat which is already present on the machine.
Regards
Janez