on 07-23-2007 4:40 PM
Hi,
I would to save my PDF on the server WAS
1) the user perform the form.
2) an action binding to a button save the data in R3 (this operation is ok)
3) When the safeguard is OK, the same action back up the PDF into a folder on the WAS.
Could you help me for this operation please ?
Anyone can help me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tony
Bind the pdfSource property of the InteractiveForm UI element to a context attribute (say PDFSource directly under root node) of type binary.
In the event handler where you want to save this pdf write the following code.
byte[] content = wdContext.currentContextElement().getPDFSource();
File file = new File("<AbsoluteFilePathOnServer>" /* ex c:\temp\pdfs\newpdf.pdf */);
FileOutputStream fileStream = new FileOutputStream(file);
fileStream.write(content,0,content.length);
I guess this should work.
kk
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.