Problem with JRexCanvas.saveDocument

"vijaykiran.d" <[email protected]> Wed, 13 Sep 2006 12:36:35 +0530
Newsgroups gmane.comp.mozilla.jrex
Message-ID <[email protected]>
Hi,

I'm trying to save a document using the following code:

canvas.saveCurrentDocument(file.getPath(), null, "text/html",
	
JRexCanvas.ENCODE_FLAGS_BODY_ONLY, 0, saveProgressListener);


In a swing application I'm calling this method when a button is clicked.
The file is created, but it is empty. 
Do I need to create any other thread for saving the document when canvas
is used in  swing?

The code is working fine when I use it in a SWT application (Eclipse
RCP). 


Regards,
Vijay Kiran,
http://vijaykiran.com