ISmpReceiptSettings::AlwaysPrintSalesReceipt

Salesmate +

No parameters

Property description

It is used to check whether AlwaysPrintSalesReceipt 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 lPrntReceipt=0;
HRESULT hr=m_SmpReceiptSettings->get_AlwaysPrintSalesReceipt(&lPrntReceipt);
if(FAILED(hr)) 
{
  AfxMessageBox(_T("Failed to load"));
}
if(lPrntReceipt==TRUE) 
{
  AfxMessageBox(_T("AlwaysPrintSalesReceipt option is Enabled"));
}
else
{ 
  AfxMessageBox(_T("AlwaysPrintSalesReceipt option is Disabled")); 
}

(C) 1999-2001 My Company All rights reserved