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-07 12:31:08

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

Print Preview is not displaying the updated sheet info

Hi, I used the below code for print preview. It works fine for first time but after this, if I make any change in sheet (adding new values in next row) then the preview does not reflect that change


var sheet = grid.CurrentWorksheet;

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

Offline

#2 2016-01-07 12:46:00

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

Re: Print Preview is not displaying the updated sheet info

Hi, I've tested the code and I couldn't see that problem. Maybe there is additional conditions that make the problem happen. Can you please provide more information like whether or not your document is loaded from Excel? or using a special printer?

Offline

#3 2016-01-07 13:10:49

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

Re: Print Preview is not displaying the updated sheet info

Document is not loaded from anything and there is no such condition in my code that allows the editing of sheet but does not show updated sheet during preview.

Offline

#4 2016-01-07 13:17:07

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

Re: Print Preview is not displaying the updated sheet info

Kindly test this scenario;

1) Add one row in sheet and preview it
2) Add 2nd row in sheet and preview again

2nd row will not be there in 2nd preview.

Offline

#5 2016-01-08 12:28:29

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

Re: Print Preview is not displaying the updated sheet info

Can you please provide an example document or screen snapshot, you could mail me at: jing at reogrid.net, Thanks.

Last edited by Jingwood (2016-01-08 12:28:46)

Offline

Board footer

Powered by FluxBB