No parameters
Property description
It is used to check whether EnableDefaultReceiptPrinter option is enabled or notExample code
CComPtr<ISmpReceiptSettings>m_SmpReceiptSettings; HRESULT hr=m_SmpReceiptSettings.CoCreateInstance(CLSID_SmpReceiptSettings); if(FAILED(hr)) { AfxMessageBox(_T("SMPReceipt Settings Failed")); return FALSE; } long lReceiptPrntr=0; HRESULT hr=m_SmpReceiptSettings->get_EnableDefaultReceiptPrinter(&lReceiptPrntr); if(FAILED(hr)) { AfxMessageBox(_T("Failed to load")); } if(lReceiptPrntr==TRUE) { AfxMessageBox(_T(" DefaultReceiptPrinter option is Enabled")); } else { AfxMessageBox(_T("DefaultReceiptPrinter option is Disabled")); }