locked
Print Crystal Report on Server from ASP.NET Web Service RRS feed

  • Question

  • User571971147 posted

    Hi

    Can I print a Crystal Report from a Web Service to the local default printer (on the Server, not the client)  without displaying the printer selection dialog (or any dialogs)? Can I even print on the server?

    Many thanks for any and all assistance.

    Ross

    Friday, October 3, 2014 12:20 AM

All replies

  • User705563967 posted

    yes you can easily print 

    reportname report1=new reportname(); 
    report1.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
    report1.PrintOptions.PaperSize = PaperSize.PaperA4;
    report1.PrintToPrinter(1, false, 0, 15);
    Tuesday, October 21, 2014 3:26 AM