You are not logged in.
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.
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
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
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
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
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