on 03-28-2007 9:22 AM
Dear All,
I have an urgent case which <b>requires not to show the "Save" button in FileDownload element box</b>. I only want "Open" and "Close" button shown. How to achieve this?
thanks,
Zita Liao
Zita,
First, this is absolutely impossible -- this is standard built-in browsers behavior and it can't be altered neither with WD nor with JavaScript.
Second, this is very esoteric requirement; I'm just wondering what your business analyst / wireframe designer smokes.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks all,
But I use this piece of the code....and only the pdf file is opened directly.
Other types such as .doc or .ppt, the system still pops out the "SAVE" window though. How to deal with other types and let them open directly??
try{
IWDCachedWebResource pdfResource=WDWebResource.getWebResource
(out.toByteArray(),binaryType.getMimeType());
wdComponentAPI.getWindowManager().createExternalWindow(
pdfResource.getURL(),"Report View",true).open();
}
catch(Exception e)
{
wdComponentAPI.getMessageManager().reportException(
e.getLocalizedMessage(),
true);
}
thanks,
Zita
zita,
Actually this is browser-specific. For example, Firefox never opens Word document without a dialog. Any browser doesn't open Word document if Word application is not installed (obviously).
Also I'm not sure whether it helps, try the following:
in wdDoInit invoke
binaryType.setMimeType(
new WDWebResourceType(
WDWebResourceType.DOC.getFileExtension(),
WDWebResourceType.DOC.getHtmlMime(),
flase /* isAttachment == false, i.e. inline */
)
);
Valery Silaev
SaM Solutions
Hi Zita,
I guess you want that user should only be allowed to open the file and not save it. If this is what you want then set the <b>Behaviour</b> property of the File Download UI element to openInplace.
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.