Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 Tech Support » CExtPPVW question (2.85) Collapse All
Subject Author Date
tera tera Jan 18, 2009 - 5:35 PM

Hello.


Please teach revision contents from 2.84 of CExtPPVW.

CExtPPVW can print normally.

A character does not stick out from the print area.

Technical Support Jan 19, 2009 - 1:16 PM

The CExtPPVW template class versions in Prof-UIS 2.84 and 2.85 use similar print/preview generation algorithms. They walk through all the grid cells, measure them and organize content into pages before generating enhanced metafile of each page. The difference is that 2.85 uses different measurement formulas which are correct when the same computations in 2.84 are not correct and can make some grid cells printed partially outside pages. The CExtPPVW template class in Prof-UIS 2.85 does correct measuring and painting of each printed page and supports several additional features. The CExtPPVW < CExtGridWnd >, CExtPPVW < CExtTreeGridWnd >, CExtPPVW < CExtReportGridWnd > and CExtPPVW < CExtPropertyGridCtrl > specialized versions of the CExtPPVW template class support the following new properties in Prof-UIS 2.85:

- m_bDrawSimpleWhiteBackground - erase background of each printed/previewed grid cell if set to true;
- m_bDrawSimpleBlackBorders - draw thin black borders around each printed/previewed grid cell if set to true;

In simple words, Prof-UIS 2.85 supports grid lines in printed/previewed grids.

The CExtPPVW < CExtTreeGridWnd >, CExtPPVW < CExtReportGridWnd > and CExtPPVW < CExtPropertyGridCtrl > specialized versions of the CExtPPVW template class support the following new properties in Prof-UIS 2.85:

- m_bDrawSimpleBlackOutline - draw tree thin solid tree outline if set to true;
- m_bDrawSimpleBlackOutlineUsingDots - draw thing dotted tree outline if set to true; this affects to printing/previewing only if the m_bDrawSimpleBlackOutline property is set to true;

By default all these new properties is set to false and Prof-UIS 2.85 generates printed/previewed grid content looking similar to that in the previous Prof-UIS versions. But you can turn these features on in your grid controls. For instance, if you invoke the following code in the CChildView class constructor in the ReportGrid sample application:

   m_bDrawSimpleBlackBorders
                        = m_bDrawSimpleBlackOutline
                        = m_bDrawSimpleBlackOutlineUsingDots
                        = true;

Then the report grid control will produce the following print/preview content: http://www.prof-uis.com/download/forums/ReportGridPPVW-285.png

Additionally, Prof-UIS 2.84 does not support printing/previewing of joined cells and the grid window in the SynchronizedGrids sample application does not support printing/previewing. This feature is added in Prof-UIS 2.85 and you can see it in the SynchronizedGrids sample application.