on 04-21-2010 11:41 AM
When I download the file using filedownload ui element, the name of the file is not correct. it is different everytime like CA4WLWV.xls , CACX6BGL.xls etc.
I have put the code to determine the file name as below
String filename = wdContext.currentExcelName_downloadElement().getExcelName();
IWDResource resource = WDResourceFactory.createResource(b, filename, WDWebResourceType.XLS);
wdContext.currentContextElement().setResource_filedownload(resource);
this issue is not seen in one of the systems of client landscapes and in one it is seen
thanks
B
edit: This problem is not srver specific. it is in local system, ie. local PC. in some PCs it is seen. I have cleared browser cache but not luck
thanks
Edited by: B on Apr 21, 2010 4:21 PM
Hi,
You can try creating a cached resource
IWDResource webResource = WDResourceFactory.createCachedResource(b, filename, WDWebResourceType.XLS);
You should once print the value for filename and check if it is the desired one.
Regards,
Sruti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.