Hi,

I'm printing out using a pdf library that is throwing an exception.

Type 
   PDFException = Exception;

Then in the code...

raise PDFException.Create('Error in BeginDoc!');

Except the text is 'Invalid Filename' which I can't find in the source.

My application is doing a 

  try
        PDFPrinter.BeginDoc;
  except
   MessageDlg(
        'Can''t print "'+SummaryFileName+
        '" to Memory Dongle -- Make sure there is file space and try
again.',
        mtConfirmation,
        [mbOK],
        0);

        exit;
  end;
  
As a result I don't see the Exception text raised by the
PDFPrinter.BeginDoc.

How do I catch the text from the 'raise' in called function and include it
in my error message?

Thanks,

John Dammeyer

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to