|
Get the last error message when create the barcode. When you call BarCodeWriterPreview or BarCodeWriterSave or BarCodeWriterSaveHBITMAP methods, you can get the last error message if something is wrong.
Public Function BarCodeWriterGetErrorMessage() as string
|
No Parameter
Return Value Return the last error message.
Example
|
Visual Basic Syntax ImageViewer1.BarCodeWriterSetValue "12345" ImageViewer1.BarCodeWriterSetStandard 0 ImageViewer1.BarCodeWriterSetOutputArea 200, 100 ImageViewer1.BarCodeWriterShowCheckDigit true ImageViewer1.BarCodeWriterShowText true ImageViewer1.BarCodeWriterFitToRect true ImageViewer1.BarCodeWriterSetFontSize 18 ImageViewer1.BarCodeWriterPreview strError = ImageViewer1.BarCodeWriterGetErrorMessage If strError <> "" Then MsgBox strError Exit Sub End If
|
|
|
|
|