ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-01-05 08:19:38

khurram.hits
Member
Registered: 2015-09-03
Posts: 18

How to show Row Header and Column Header on Print Preview Document?

How to show Row Header and Column Header on Print Preview Document?

I am using below code but it does not display headers during print preview;

                var sheet = grid.CurrentWorksheet;
                using (var session = sheet.CreatePrintSession())
                {
                    using (PrintPreviewDialog printPreviewDialog = new PrintPreviewDialog())
                    {
                        printPreviewDialog.Document = session.PrintDocument;
                        printPreviewDialog.SetBounds(200, 200, 1024, 768);
                        printPreviewDialog.PrintPreviewControl.Zoom = 1d;
                        printPreviewDialog.ShowDialog(this);
                    }
                }

Offline

#2 2016-01-05 23:58:54

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: How to show Row Header and Column Header on Print Preview Document?

Current version doesn't support print row and column header, a solution is to insert a first row and column and set some styles to make them like headers and print.

Offline

Board footer

Powered by FluxBB