Yogandanda Muthaiah offered some good suggestions to my original question, but the answer is still unclear to me. My situation: I have a web page that interacts with the user to assembe data for a report into a strongly typed dataset which is assigned to the report document using the .setDataSource property of the report document. The report is displayed properly and I can navigate through it without problem.
However, when the user clicks the "Print" button in the CR toolbar, the report is sent as a .pdf with the name of the viewer control (crViewer) as it's title into the user's downloads folder as "crViewer.pdf"
What I would really like to do is replace the print button in the tool bar with my own which would open up a user dialog asking if they wanted to save the report as a PDF and give a meaningful name to the saved file, OR, send the report directly to the default printer on their system.
I have found similar questions (and answers) but they are based on windows forms, not web pages. When I debug my web page in VS and set breakpoints and I examine the crViewer control, as well as the rptDocument object, I can find no reference to the print button in any object. It appears that for web page applications, all the configuration and work is done via javascript.
The answer to this issue using windows forms is as I would suspect: hide the print button, scan through all the toolbar controls and add a new print button control and a handler pointing to an application method. This answer is referenced here.
I just can't find a pathway to do this in a web environment.
Thank you.