Print GridWeb - Not printing whole grid - Printing only 1 page

Last post 09-13-2010, 10:55 AM by Amjad Sahi. 4 replies.
Sort Posts: Previous Next
  •  09-02-2010, 11:03 AM 256847

    Print GridWeb - Not printing whole grid - Printing only 1 page .NET

    Hi,

    I am not able to print the whole grid. I have around 500 rows. It is printing only 1 page and in the PrintPreview, I can see only 1 page. 

    I do not want to save grid to excel and I want to print directly from web page. Even I tried to remove the scroll bars using the NoScroll="true" but print is not working properly.

    Please can you advise how to print the whole grid.

    Thanks,
    Puspal

     
  •  09-02-2010, 2:43 PM 256885 in reply to 256847

    Re: Print GridWeb - Not printing whole grid - Printing only 1 page

    Hi Puspal,

    We are looking into this issue. Please forward us your sample project to investigate the issue in detail.

    Thanks,


    Sincere Regards,

    Salman Shakeel
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  09-13-2010, 6:25 AM 258343 in reply to 256885

    Re: Print GridWeb - Not printing whole grid - Printing only 1 page

    Attachment: Present (inaccessible)

    Hi,


    We have implemented the printing feature in Aspose.Cells.GridWeb v2.3.1.2015(attached). Please try "GridWeb1.print();" method at client side for your need.


    Thank you.

     


    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
  •  09-13-2010, 9:28 AM 258380 in reply to 258343

    Re: Print GridWeb - Not printing whole grid - Printing only 1 page .NET

    Hi,

    Thanks for your reply but the print() function is NOT working. 

    I got the javascript error "Object doesn't support this property or method". I used your latest dll version (2.3.1.2015)

    I added a Javascript function which was called from a linkbutton's OnclientClick event as follows:
    <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="PrintGrid();">Print Client</asp:LinkButton>

    function PrintGrid() {
          var grid = document.getElementById('<%= GridWeb1.ClientID %>');
          grid.print();
    }

    Please suggest some solution.

    Regards,
    Puspal
        
     
  •  09-13-2010, 10:55 AM 258397 in reply to 258380

    Re: Print GridWeb - Not printing whole grid - Printing only 1 page

    Hi,

    When you unzip the Aspose.Cells.GridWeb v2.3.1.2015.zip (I attached in my previous post), it has also "commonbehav.htc" file (with the control's dll file), please copy/overwrite this file in the ".......\Aspose.Cells for .NET\acw_client" folder.

    Kindly let us know if you still find any issue.

    Thank you.

    Amjad Sahi
    Support Developer,
    Aspose Sialkot Team
    Contact Us
     
View as RSS news feed in XML