on 06-13-2008 4:22 PM
Hello,
I want to change the default filename of a generated PDF.
The PDF is generated by a SAP R3 standard program, which I don't want to change.
Depending the case, the PDF is printed, send via email using SCOT or archive link.
I would like to know if in the PDF template using a Script (Java or FormCalc) it's possible to set the filename and different properties such as Author, Title subject... of the PDF.
Thanks.
Matthieu
IWDCachedWebResource pdfResource = WDWebResource.getPublicCachedWebResource(pdfContent,WDWebResourceType.PDF,WDScopeType.CLIENTSESSION_SCOPE,wdThis.wdGetAPI().getComponent().getDeployableObjectPart(),"test");
Use this code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gurprit,
I've probably missed something.
I imagine that this should be run on client only when form ready.
But when I look into the report, there is an error here:
IWDCachedWebResource pdfResource (missing ";" at the place of the space ' '.)
So where and when do you execute this script?
Thanks.
Matthieu.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.