DoPageSetup 

Syntax:             BOOL DoPageSetup (LPCTSTR lpszKey);

Return Value:    TRUE if operation successful, otherwise FALSE.

Parameter:

                        lpszKey    Pointer to a string representing the name of the registry key dedicated to store page setup information.

Remarks:

This method shows the Page Setup dialog of ELS-QB component with initial values loaded from corresponding registry key (parameter lpszKey ).

Note: If Page Setup dialog is OK-ed by user,  the method stores input in the system registry.

Example:

This sample code shows how to call Page Setup dialog within ELS-QB Component, assuming that some hypothetic registry key has been set as Page Setup storage for ELS-QB Component by preceeding call of SetRegistryKey() method.

              void CELS_QBDemoView:: CELS_QBDemoView ()

 {

...................

m_strPageSetupKey =_T(“Software\\Epsilon-Logic Systems\\ELS-QBDemo”);

               }

               {

               void CELS_QBDemoView::OnInitialUpdate()

               {

// Some m_QBCtrl initialization code here

....................

m_QBCtrl.SetRegistryKey(m_strPageSetupKey);

....................

               }

               void CELS_QBDemoView::OnFilePageSetup() 

               {

m_QBCtrl.DoPageSetup(m_strPageSetupKey);        

  }