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 » ReportGrid ProfUIS Version 2.64? Collapse All
Subject Author Date
Gunasekaran Velu May 15, 2007 - 1:27 AM

I saw ur sample ReportGrid application, but i can’t understand ur program why u r using these three files in stdafx.h header files
#include "mso9.th"
#include "vbe6ext.th"
#include "excel9.th"

How did u access the printpreview event. please help me....

Thanks and Regards
Guna

Nan dhini May 18, 2007 - 10:38 PM

Hi,
i set Grid for Resizable Dialog,i want to set the Print and Printview option for that dialog.But i don’t know how to set.Please help me.

Thanks and Regards,
Nandhini

Technical Support May 19, 2007 - 10:10 AM

You should use the same approach as described above in this thread for the report grid control. Do you have any difficulties with it?

Technical Support May 19, 2007 - 10:06 AM

Please use the CExtPPVW < CExtGridWnd > template-based type instead of the CExtGridWnd class type. You won’t be able to print the grid otherwise. Besides, you should override the OnCmdMsg() virtual method in your dialog class:

BOOL CYourDialogClass::OnCmdMsg(UINT nID, INT nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) 
{
      if( m_wndGrid.OnCmdMsg( nID, nCode, pExtra, pHandlerInfo) )
            return TRUE;
      return CBaseClass::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);

Technical Support May 15, 2007 - 11:53 AM

These include statements are needed for the feature that exports data to Excel, which is demonstrated in this sample. To see how it works, select some rows and go to File->Export To Excel menu item. As for the Print Preview command it is handled in the CExtPPVW template.

Gunasekaran Velu May 15, 2007 - 9:42 PM


hi

i put the Reportgrid in resizeable dialog. in this case how can u implement the print preview and print methods?in my file menu i have print preview menu and print menu but when i click the preview menu no action will be taken. but important one i have ReportGrid in Dialog... Help me

Thanks and Regards
Guna

Technical Support May 16, 2007 - 9:59 AM

Please use the CExtPPVW < CExtReportGridWnd > template based type instead of the CExtReportGridWnd class type. That is needed to make the report grid control print / preview - able. Besides, you should override the OnCmdMsg() virtual method in your dialog class:

BOOL CYourDialogClass::OnCmdMsg(UINT nID, INT nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) 
{
      if( m_wndReportGrid.OnCmdMsg( nID, nCode, pExtra, pHandlerInfo) )
            return TRUE;
      return CBaseClass::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);