ISmpReceiptSettings::PrintShopNameAtHeader

Salesmate +

No parameters

Property description

It is used to check whether PrintShopNameAtHeader option is enabled or not

Example code

CComPtr<ISmpReceiptSettings>m_SmpReceiptSettings; 
HRESULT hr=m_SmpReceiptSettings.CoCreateInstance(CLSID_SmpReceiptSettings); 
if(FAILED(hr))
{
  AfxMessageBox(_T("SMPReceipt Settings Failed"));
  return FALSE;
} 
long lHeaderShpNme;
HRESULT hr=m_SmpReceiptSettings->get_PrintShopNameAtHeader(&lHeaderShpNme);
if(FAILED(hr))
{
  AfxMessageBox(_T("Failed to load"));
}
if(lHeaderShpNme==TRUE)
{
  AfxMessageBox(_T("Print ShopName At Header option is enabled"));
}
else
AfxMessageBox(_T("Print ShopName At Header option is disabled"));

(C) 1999-2001 My Company All rights reserved