This is a migrated thread and some comments may be shown as answers.

Printing : No Data in first page but not next page

1 Answer 44 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cyril
Top achievements
Rank 1
Cyril asked on 12 Apr 2017, 06:47 PM

Hello,

For a developpment in my company, I need to print a list of data document by date with new header and new grid when there is new date

It's important : No need grouping

When I'm printing a test page, First Page is OK but not next page, There is header of grid but not data of grid by date

No bug in my code, just no data in printing preview

Printing Page 1

Printing Page 3

See my demo test project in file-attach => button of test is right-top (small button)

Link of downloading : TelerikWinFormsApp1

Do you know this issue ?

if yes, how solve it ?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 13 Apr 2017, 09:05 AM
Hello Cyril,

Thank you for writing.

Your project suggests that you would like to have multiple grids shown in the print preview dialog and later printed together. This functionality is not supported out of the box.

Your approach in the attached project also fails because you are changing the associated object while the grids are being printed. In case, printing the control one by one is not suitable for your local scenario please check the attached project suggesting a different approach how you can achieve your task.

Basically, you need to create an IPrintable object containing a collection of different RadGridView instances. Then you can store the grid objects in collection and refer to it while the IPrintable object is being printed. Detailed information on printing in our framework is available here: http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/printing-support/how-to/create-prinatble-panel.

I also deleted your other forum post as it duplicated this one. Besides the project, you can also find attached a short video showing the result on my end.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Cyril
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or