on 08-30-2008 11:06 PM
Hi we developed a number of WDJ apps on NW04 using the TableUtilites.java to perform various functions.
Now we are migrating to NW04s and a lot of the methods are deprecated.
Specifically this code:
b = xml_file.toString().getBytes("UTF-8");
IWDCachedWebResource xlfile = WDWebResource.getWebResource(b, WDWebResourceType.XLS);
How do you do this in 04s API ??
ok thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think I may have found the answer with this:
linktoFile = xlfile.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
//linktoFile = xlfile.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
//linktoFile = xlfile.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
siva thanks for the info...
here is the complete block....do you know what should go in the getUrl?? it takes and int ??
//04 way of doing it
b = xml_file.toString().getBytes("UTF-8");
IWDCachedWebResource xlfile = WDWebResource.getWebResource(b, WDWebResourceType.XLS);
xlfile.setResourceName(wdTableNode.getNodeInfo().getName() + " List");
linktoFile = xlfile.getURL();
//04 way of doing it
//04s way of doing it...
b = xml_file.toString().getBytes("UTF-8");
String filename = wdTableNode.getNodeInfo().getName() + " List";
IWDResource xlfile = WDResourceFactory.createCachedResource(b, filename, WDWebResourceType.XLS);
linktoFile = xlfile.getUrl(0);
//04s kcf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try this:
b = xml_file.toString().getBytes("UTF-8");
IWDResource cachedExcelResource = null;
Strinf filename ="name of the file";
cachedExcelResource=
WDResourceFactory.createCachedResource(b, filename, WDWebResourceType.XLS);
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.