Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My application contains the following macro code used while opening the document.
set obj = doc.sheets("Start").Sheetobjects(idprefix & "BUHELP_Manual")
set prop = obj.Getproperties
prop.Type = 0
prop.Application.v = docprop.MyWorkingDirectory & "\Manual.pdf"
obj.SetProperties prop
Functionality: Set the path of the user manual as value for the button and set the button type to "lauch external file".
This works fine with versions lower version 9. Now the logic seems to have changed.
Can anyone provide a code example how to do this in version 9? Can't find anything in the apiguide.qvw...
How can to add a new lauch action to a button?
Dear Susann,
in the action-dialogue you can see everywhere the small button with 3 points on it, meaning that all entries there might be calculated, and might come from a variable. Just give it a try.
HTH
Peter
Hi, apiguide.qvw is too poor of information. Can't we get a version more rich?
I think is it possible but i don't know the properties of the Structure ActionItems.
If you like to launch the manual by pressing a button, you can do it by using an action.
Create a button
Go to tab Actions and click Add
Choose Launch from External
Enter the name of the file to launch under Filename (like Manual.pdf)
Enter the path to the file under Working Directory.
Done
Hello,
I know how to add an action manually, but that is not the point. Because of changing directories of the qvw-file of the enduser, the path should be set through a macro when opening the application.
I don't want to loose this funtionality, otherwise I cannot switch to version 9 as I planned to.
Hopefully anyone has an idea how to do this with a macro....
Thanks in advance.
Dear Susann,
in the action-dialogue you can see everywhere the small button with 3 points on it, meaning that all entries there might be calculated, and might come from a variable. Just give it a try.
HTH
Peter
Dear Peter,
thanks for the hint. I was so fixed on the idea to add a new action using the macro, that I totally forgot the possibility of combining a manually added action with a variable for the path.
Your idea worked out for me.
Have a nice day...
Susann
Hello Peter/ Susann,
I do not think I follow Peter's suggestiong.
Can either of you explain what you mean by "action-dialogue" and "small button"?
I am looking to add the action of calling a macro or running a macro from a vb script.
Thanks,
Pavani