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 » reportgrid print without expanded tree Collapse All
Subject Author Date
Johannes Jahn Dec 22, 2010 - 5:31 AM

dear support,

if i was doing the PrintPreviewMod ervery line was expanded!

But what i want to do is printing the actual state of the grid. if i had expand the first row only I want print only the first row expanded and the others collapsed.

for further explenations look at these two pictures:

Pic1: I only expand the first row:

Pic2: the resulting PrintPreview:

so the print preview contains more informatins which I would not like to have.

Are there any possibilities to control that?

best regards

Johannes Jahn

Technical Support Dec 22, 2010 - 9:48 AM

Please override the following virtual method in your CExtPPVW < CExtReportGridWnd >-derived class and fill the array of report row pointers which should be printed/previewed:

    virtual void OnCalcPrintableTreeItemArray(
        CArray < HTREEITEM, HTREEITEM & > & arrPrintableItems
The CExtReportGridItem* pointers can be used as HTREEITEM tree grid row handles.
By default, the CExtPPVW < CExtReportGridWnd > :: OnCalcPrintableTreeItemArray() method computes an array of all the report grid rows including data rows and group rows.