on 02-27-2007 9:48 PM
I have a .html file in MIMES and using this code. but its not working. Any help??
if possible give me the steps to do this. Thanks!
WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(),
"my-file.html")
Hi Pankaj,
Try using the absolute url for your html file.
Use folliwing function :
<b>WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart, resourceName)</b> - returns the URL for the reource say my_file.html in your case.
You can then fire an exit plud for the url you get in the above step or use this url as source to 'Frame' control.
Hope this solves your problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just tested this with a >NW04s runtime and the following code for opening a pdf file:
public void wdDoInit()
{
//@@begin wdDoInit()
String url = WDURLGenerator.getWebResourceUrl(wdComponentAPI.getDeployableObjectPart(), "patterns.pdf");
wdContext.currentContextElement().setDocumentUrl(url);
//@@end
}
Did you assign a value to the "text" property of the LinkToURL? Whcih locale are you using at runtime?
Armin
Your code looks OK. BTW, are you using LinkToURL UI element? If yes, then simply set the reference property of it to the Url that you are generating.
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.