on 04-20-2012 12:39 PM
Hi,
i have created an htmlfile. I want to tranfer this file to the client without any additional Button Or Ui click. The dialog "save as..." or "open with" should come immidiately.
I have an byte[] or an IWDResource resource filled with data. But what's the next step???
kind regards
Michael Rudolph wrote:
I have an byte[] or an IWDResource resource filled with data. But what's the next step???
Hi Michael
Next step would be one of two:
IWDResource webResource;
...
String resourceURL = webResource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resourceURL, <window title>);
win.show();
Regards, Siarhei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Step 2 solved my problem. Thanks a lot...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just call the download method defined in IWDResource interface. I mean assuming resource is the IWDResource form of the html file then write resource.download( ); to get the save, open popup.
Regards,
Vishweshwara P.K.M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
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.