Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Data loss in printpreview (I think it'a a bug) Collapse All
Subject Author Date
Anil Siddhpura Dec 25, 2008 - 11:08 PM



I found problem in printpreview of CExtReportGrid. I generated report using CExtReportGrid class. But when i do printpreview, some data of report is being loss in printpreview.


i.e.  I have records from 1 to 100 in my report & if i do printpreview then it display 1 to 27 records in 1st page & the 2nd page starts from record no. 41. So it was data loss of 13 rows at each page break.

The default printer was Microsoft XPS document writer. And the page setup was page size : A4 & Landscape

I refer the ReportGrid Sample provided by Prof-Uis, but the same thing is happening in it.


So please help me ASAP.





Anil Siddhpura Jan 5, 2009 - 5:11 AM


Please reply to my previous query. I really required it at an urgent basis.

Technical Support Dec 29, 2008 - 2:15 PM

It’s hardly possible support several versions at a time. Do you have any reasons not to switch to the latest Prof-UIS?

You should override the CExtPPVW_Printable::OnEndPrintPreview() for handling the end of print-preview mode event. The CExtPPVW_Printable::DoPrintDoc() virtual method is invoked for printing the document.

Anil Siddhpura Dec 31, 2008 - 10:58 PM


If the latest Prof-UIS is available free then i don’t have any problem to switch, but if we haev to purchase the new version then it’s a problem.


Apurv Shah


Anil Siddhpura Dec 27, 2008 - 5:10 AM


Thanks for your reply. But i required the sample of ReportGrid.exe . And i am using 2.83 version. So please solve this problem in 2.83 version, it’ll be greate help for me.

Also, how can i get the events of "Close" & "Print" buttons in printpreview mode?



Technical Support Dec 26, 2008 - 2:06 PM

The printing and print preview subsystem has an internal cache of enhanced metafiles. Each enhanced metafile contains a saved image of the printed document page. We found several issues related incorrect scaling of enhanced metafiles and fixed them. Here is the ZIP file with several sample projects based on Prof-UIS 2.85 with improved printing/previewing:

We can provide you with Prof-UIS 2.85 download URL.