[Visual Basic]
' Initialize an empty Writer object
Dim obj As New angGoGo.CoolWatermark.Writer()
' Call process method will raise the exception
because there is no Image in Writer
Try
obj.WriteText("hello world")
Catch ex As CoolWatermarkException
MessageBox.Show(ex.Message)
End Try
[C#]
// Initialize an empty Writer object
angGoGo.CoolWatermark.Writer obj = new angGoGo.CoolWatermark.Writer(
);
// Call process method will raise the exception
because there is no image in Controller
try
obj.WriteText("hello world");
catch ( CoolWatermarkException ex)
MessageBox.Show(ex.Message);