locked
RSClientPrint RRS feed

  • Question

  • Hi,
    Is it possible to RSClientPrint for printing aspx based reports i mean other than SQL Server reporting services reports.

    Thanks


    Verybiztalker
    Sunday, July 5, 2009 6:55 PM

Answers

  • Hi Verybiztalkerb,

     

    It seems you want to print reports using RSClientPrint control in other web application from your post. If I have misunderstood, please let me know.

     

    The Microsoft ActiveX control, RSClientPrint, provides client-side printing for reports viewed in HTML Viewer. It provides a Print dialog box so that a user can initiate a print job, preview a report, specify pages to print, and change the margins. During a client-side print operation, the report server renders the report in the Image (EMF) rendering extension and uses the print capabilities of the operating system to create the print job and send it to a printer.

     

    Client-side printing provides a way to control and improve the quality of a printout for an HTML report by side-stepping browser print settings on the user's computer, and instead using the page dimensions, margins, header, and footer text of the report to create the print output. The print control reads property values of the report to set page size and margins.

     

    The following HTML example shows how to specify the .cab file, Print method, and properties in JavaScript:

    <BODY onload="Print()">

    <OBJECT ID="RSClientPrint" CLASSID="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" CODEBASE="<URL to the .CAB file>#Version=<your application version information>" VIEWASTEXT></OBJECT>

    <script language="javascript">

    function Print()

    {

    RSClientPrint.MarginLeft = 12.7;

    RSClientPrint.MarginTop = 12.7;

    RSClientPrint.MarginRight = 12.7;

    RSClientPrint.MarginBottom = 12.7;

    RSClientPrint.Culture = 1033;

    RSClientPrint.UICulture = 9;

    RSClientPrint.Print('http://localhost/rtm', '%2fEmployee_Sales_Summary&ReportMonth=6&ReportYear=2004&EmpID=20', 'Employee_Sales_Summary')

    }

    </script>

    </BODY>

     

    For more information, please see:

    Using the RSClientPrint Control in Custom Applications: http://msdn.microsoft.com/en-us/library/ms159195(SQL.90).aspx

     

    Please feel free to ask, if you have any more questions.

     

    Thanks,

    Jin Chen


    Jin Chen - MSFT
    Tuesday, July 7, 2009 3:29 AM

All replies

  • Hi Verybiztalkerb,

     

    It seems you want to print reports using RSClientPrint control in other web application from your post. If I have misunderstood, please let me know.

     

    The Microsoft ActiveX control, RSClientPrint, provides client-side printing for reports viewed in HTML Viewer. It provides a Print dialog box so that a user can initiate a print job, preview a report, specify pages to print, and change the margins. During a client-side print operation, the report server renders the report in the Image (EMF) rendering extension and uses the print capabilities of the operating system to create the print job and send it to a printer.

     

    Client-side printing provides a way to control and improve the quality of a printout for an HTML report by side-stepping browser print settings on the user's computer, and instead using the page dimensions, margins, header, and footer text of the report to create the print output. The print control reads property values of the report to set page size and margins.

     

    The following HTML example shows how to specify the .cab file, Print method, and properties in JavaScript:

    <BODY onload="Print()">

    <OBJECT ID="RSClientPrint" CLASSID="CLSID:FA91DF8D-53AB-455D-AB20-F2F023E498D3" CODEBASE="<URL to the .CAB file>#Version=<your application version information>" VIEWASTEXT></OBJECT>

    <script language="javascript">

    function Print()

    {

    RSClientPrint.MarginLeft = 12.7;

    RSClientPrint.MarginTop = 12.7;

    RSClientPrint.MarginRight = 12.7;

    RSClientPrint.MarginBottom = 12.7;

    RSClientPrint.Culture = 1033;

    RSClientPrint.UICulture = 9;

    RSClientPrint.Print('http://localhost/rtm', '%2fEmployee_Sales_Summary&ReportMonth=6&ReportYear=2004&EmpID=20', 'Employee_Sales_Summary')

    }

    </script>

    </BODY>

     

    For more information, please see:

    Using the RSClientPrint Control in Custom Applications: http://msdn.microsoft.com/en-us/library/ms159195(SQL.90).aspx

     

    Please feel free to ask, if you have any more questions.

     

    Thanks,

    Jin Chen


    Jin Chen - MSFT
    Tuesday, July 7, 2009 3:29 AM
  • Thanks dear


    Verybiztalker
    Monday, August 10, 2009 2:33 PM