Adding file output button to toolbar

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
randomaccess
Jr. Propeller Head
Posts: 1
Joined: Tue Dec 09, 2008 4:08 pm

Adding file output button to toolbar

Post by randomaccess »

Hi all,

Ive had a look around and cant seem to find it anywhere. Im trying to add a button to the toolbar which will open a Word version of my documentation contents.
Im using flare v4 and my output is webhelp.
Ive tried going to Skins > Styles > ToolbarItem > Add Class > ControlType: Button > OnClick: window.open("../Content/Office Procedures/test.doc")
Im guessing my js coding may need some tinkering.
Any ideas would be appreciated!

Thanks
Con
ChristyPatton
Sr. Propeller Head
Posts: 159
Joined: Thu Sep 18, 2008 8:34 am
Location: "West of the Mississippi"

Re: Adding file output button to toolbar

Post by ChristyPatton »

I have a button to open a PDf of the output. I locate my pdf within my project. If anyone moves it it breaks the link.

window.open("T:/Projects/Global/Content/Resources/VITALXWord.pdf")

Hope this helps.
Christy Patton
Technical Communications

MadPak
Flare 6.1
Capture 4.0
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Adding file output button to toolbar

Post by NorthEast »

randomaccess wrote:Ive tried going to Skins > Styles > ToolbarItem > Add Class > ControlType: Button > OnClick: window.open("../Content/Office Procedures/test.doc")
Im guessing my js coding may need some tinkering.
The javascript is fine.

One thing that would stop this working is having Mark of the Web enabled. Check the Advanced tab in your target, and you need to switch off Insert Mark of the Web.

If you have MOTW on, this affects the security level of your help, and the browser will block opening files like word documents and PDFs.
Post Reply