ISmpReceiptSettings::BypassPrintDlg

Salesmate +

No parameters

Property description

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

(C) 1999-2001 My Company All rights reserved