ISmpReceiptSettings::ReceiptPrinterName

Salesmate +

No parameters

Property description

It is used to view the Receipt printer name

Example code

CComPtr<ISmpReceiptSettings>m_SmpReceiptSettings; 
HRESULT hr=m_SmpReceiptSettings.CoCreateInstance(CLSID_SmpReceiptSettings);
if(FAILED(hr))
{
  AfxMessageBox(_T("SMPReceipt Settings Failed"));
  return FALSE;
} 
BSTR bstr;
CString str;
HRESULT hr=m_SmpReceiptSettings->get_ReceiptPrinterName(&bstr);
if(FAILED(hr))
{
  AfxMessageBox(_T("Failed to load"));
}
 str=bstr;
if(str.IsEmpty())
{
  AfxMessageBox(_T("Printer Name is not Entered"));
}
 else
  AfxMessageBox(str);

(C) 1999-2001 My Company All rights reserved