locked
Print report using .net code without opening window RRS feed

  • Question

  • Hi all,

            I want to print report on the click of a button, without opening window to show the genereated report.
    Thanks in advance

    THanks
    Hassan
    Monday, October 12, 2009 10:34 PM

Answers

All replies

  • Hi Hassan,

    Do you want the button on the Ms CRM form? In which case you will need to add the button using the ISV.CONFIG file and open the report using the javascript window.open button.

    Please post back and provide more details if this does not answer your question.

    Hassan.

    Hassan Hussain | http://hassanhussain.wordpress.com/ | http://www.mscrmvirtualusergroup.com/
    • Proposed as answer by Hassan Hussain Tuesday, October 13, 2009 9:13 AM
    Tuesday, October 13, 2009 9:13 AM
  • Thanks Hassan,

     yes I want to put the button on toolbar but on click i want to send a request to printer to print the report wihtout opening the window to show the report to the user,

    Thanks
    Hassan
    Tuesday, October 13, 2009 12:10 PM

  • The post below demonstrates how to run an SSRS report from c# code.

    You can add a button to the tool bar by customizing the ISV.config file. 

    You will need to deploy the c# code server side in a plug-in. You can execute the code by updating a field on the record form from the JS and then capturing the event in the Plug-in.

    I would advise that you give yourself enough time to test the functionality in the live environment as it is easy to run into configuration issues with this kind of a function.


    Hassan.


    Hassan Hussain | http://hassanhussain.wordpress.com/ | http://www.mscrmvirtualusergroup.com/
    Tuesday, October 13, 2009 12:19 PM