Printing GridDataBoundGrid(Classic) in card view

Hi Community, 

So i have a GridDataBoundGrid(Classic) and i have enabled card view. Now i want to be able to do a print preview and print. I am using GridPrintDocumentAdv and 
PrintPreviewDialog to achieve this  but the problem is the Cards are getting cut off on each page . Is there a way to set the number of cards being printed on each page. I just want to print one card per page.

Thanks in advance ! 

2 Replies 1 reply marked as answer

MS Mohammed Shafeel May 26, 2021 01:09 AM UTC

here is a screenshot by the way if you are wondering how its showing in print preview . as you see there are three card showing but then the 4th card only the columns are showing and the data is on the next page , i want to have cards displaying on each page to be displayed properly and not cutting off on pages . any help would be much apprecited

Thanks ! 

Attachment: card_view_print_preview_580c08f8.zip


BT Balamurugan Thirumalaikumar Syncfusion Team May 31, 2021 04:29 PM UTC

Hi Mohammad, 

Thank you for interesting in Syncfusion products. 

We have checked your query at our end. We regret to know you that as per the implementation of GridDataBoundGrid(Classic) don’t have the support to draw the cards on multiple pages. However to avoid the cards' edges not being cut, they will be fit in the print preview page. The GridPrintToFitDocument class derives a GridPrintDocument class to handle the printing of the entire grid on a single page to fit the cards. It does this by drawing the full size grid to a large bitmap and then drawing this bitmap scaled to fit the output page. You can refer the following sample for your reference. 


Please let us know if you would require any other assistance. we will be happy to assist you. 

Balamurugan Thirumalaikumar  



Marked as answer
Loader.
Up arrow icon