on 08-21-2008 9:35 AM
Hi all.
When i save the Form, in the "save" dialog box,i get a default file name which is too long. I know i can change it in the dialog box, but how can i change this default name?
thank you
Larisa.
Hi Larissa,
You can use the below code to resolve the naming issue:
Download_File is node mapped to the download link for PDF.
//Get the Attribute Info of Attribute for PDF
IWDAttributeInfo attrinfo = wdContext.nodeDownload_File().getNodeInfo().getAttribute(IPrivateViewName.IDownload_FileElement.DATA);
ISimpleTypeModifiable simpletype = attrinfo.getModifiableSimpleType();
//Get modifiable Binary Type
IWDModifiableBinaryType binarytype = (IWDModifiableBinaryType)simpletype;
//Set the File Name
binarytype.setFileName("FileName");
//Set the Mime Type to PDF
binarytype.setMimeType(WDWebResourceType.PDF);
Hope this resolves the issue...
Regards,
Arafat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.