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 General Discussion » Report printing Collapse All
Subject Author Date
Finn Arildsen Apr 21, 2006 - 3:06 AM

I look at your very nice report grid demo.

The question is -- how do I print a grid? I would like to format the grid into printable pages with a header etc. Do you currently support such functionality or do you plan to add such support?

best regards,
Finn Arildsen

Finn Arildsen Nov 29, 2006 - 1:37 PM

Many thanks. I assume that this functionality will also find its way to the ReportGrid sample code?

best regards,
Finn Arildsen

Technical Support Dec 1, 2006 - 8:03 AM

We are working on this feature to make it available in Prof-UIS 2.63.

Technical Support Apr 21, 2006 - 7:19 AM

We are now working on the grid printing and print preview support. We would appreciate if you let us know any details you wish to see in the behavior of the print preview and appearance of the painted output.

Finn Arildsen Sep 19, 2006 - 7:32 AM

To revisit the original topic of this thread -- is there any news on the grid printing and print preview support?

best regards,
Finn Arildsen

Technical Support Sep 22, 2006 - 12:06 PM

We are sorry, Finn. In fact, we had to put off the work on the print preview because of the Ribbon Bar control. Because the print preview is an indispensable part of the report grid, we have already resumed working on it and will release it in one of the next intermediate versions.

Finn Arildsen Apr 27, 2006 - 6:54 AM

My immediate need is to be able to print (and preview) a grid without having to implement too much in my application -- nothing very fancy. I would like the framework to paginate and add (simple) page header and footer fields so that the printed grid appear as a report. The page header fields could be added by the application.

Finn Arildsen Apr 28, 2006 - 8:47 AM

On a related topic, is it possible to embed a grid in a dialog as a grid control, similarly as your property grid control?

Finn Arildsen May 14, 2006 - 12:52 PM

Thanks for the sample you sent me.

Quick question:
I added __EGBS_RESIZING_CELLS_INNER_V to the grid’s styles. This gives me a resize cursor when I hover the mouse over a horizontal gridline. I can drag the line, but it snaps back to where it was when I release it.

What can be said about setting the row heights, either programmatically, or by means of the user’s dragging the lines?

Thanks for your help.

Technical Support May 15, 2006 - 7:15 AM

If you are using a variable row height or a variable column width, then the grid window uses cells in outer header area to keep the information about the minimum, maximum and current row height and column width. You should add one outer header column on the left and initialize CExtGridCellHeader objects in it. If you do not need the header column at left, set its width to zero width:

m_wndGrid.OuterColumnCountLeftSet( 1, false );
    m_wndGrid.OuterColumnWidthSet( true, 0L, 0 ); // zero width header on the left
To insert the header cell into this column when initializing the grid row:
    CExtGridCell * pCellHdr =
        m_wndGrid.GridCellGet(
            0L,
            nRowNo,
            -1,
            0,
            RUNTIME_CLASS(CExtGridCellHeader)
            );
    if( pCellHdr == NULL )
        return . . . // memory allocation error
    pCellHdr->ExtentSet( nMinimalRowHeight, -1 ); 
    pCellHdr->ExtentSet( nMaximalRowHeight, 1 ); 
    pCellHdr->ExtentSet( nCurrentRowHeight, 0 );
The row heights should meet the following condition:
0 <= nMinimalRowHeight <= nCurrentRowHeight <= nMaximalRowHeight <= INT_MAX
If you want to make some particular row non-resizable, then all