on 02-27-2008 9:27 PM
Hi All,
We have webdynpro application for Document Management System, there we need to FTP different types of document like Word Document, Excel Document. There we need to FTP FRM (FrameMaker) type of Document also. But when we are uploading it is not recognizing the extension of FRM document.
We have implemented the following code:
IWDResource resource = element.getResDocumentUpload();
String application = null;
application = resource.getResourceType().getFileExtension();
When i am priniting the variable 'application' it doesnot have any value. Is webdynpro support FRM type of Document as resource?
Please help me out. This is really urgent...
Thanks in advance!!!!!
Looking at this [help|http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/sal/url/api/WDWebResourceType.html] suggests that the file type you are trying to use is not supported.
But there is an UNKNOWN type. I am not sure why are you getting null though instead of UNKNOWN.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhatia,
I am opening an word document dynamically using following code.
******************************************************************
try
{
File f=new File("NewDocument1.doc");
FileOutputStream fos=new FileOutputStream(f);
FileInputStream fis = new FileInputStream(f);
FileChannel fc = fis.getChannel();
byte[] data = new byte[(int)(fc.size())];
IWDCachedWebResource cachedWebResource=WDWebResource.getWebResource(data,WDWebResourceType.DOC);
cachedWebResource.setResourceName("NewDocument1.doc");
String url=cachedWebResource.getURL();
IWDWindow window=wdComponentAPI.getWindowManager().createExternalWindow(url,"cmps",true);
window.open();
}
catch(Exception ioe)
{
wdComponentAPI.getMessageManager().reportSuccess(ioe.getMessage());
wdComponentAPI.getMessageManager().reportException("Exception in Method cmps :::"+ioe.getMessage(),false);
}
*******************************************************************
Do u know how to close the word document dynamically and save it to the specified location.
It's very urgent.
Regards,
Rajesh
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.