on 11-18-2007 8:50 PM
Hi,all
How can I change a default pdf file name from unknown.pdf to something else?
Regards,
Michael
Edited by: Michael Beilin on Feb 6, 2008 9:47 AM
HI Michael,
Yes you can do that,
Just do something like
IWDAttributeInfo attInfo = wdContext.currentContextElement().node().getNodeInfo().getAttribute("PdfSource");
ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
binaryType.setFileName("TravelRequest.pdf"); // Set file name
binaryType.setMimeType(WDWebResourceType.PDF); // set the mime type
for example in the doInit() before providing the file for download
Regards, Angel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is there any way to achieve this within the live cycle designer?..
Thanks,
lisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
this is unfortunatelly always has the name: unkonwn.pdf
Best regards,
Dezso
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.