Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi all,
below is the macro code using for passing the values from one qvw file to another qvw file. Now in this the new qvw file is opening in same window but it should open in new window.
what should i change in code ?
Sub RunDOc
set var1 =ActiveDocument.Variables("vConDefectNameShort")
set App=ActiveDocument.GetApplication
set UserFile = App.OpenDoc ("ConcentrationDiagrams.qvw","","") // it should open in new window not in the same application
UserFile.CreateVariable "vConDefectNameShort"
set v1 = UserFile.Variables("vConDefectNameShort")
v1.SetContent var1.GetContent.String,true
ActiveDocument.CloseDoc
End Sub
Thanks in advance.
Still waiting for response
Thanks in advance.
Have you tried doing this with Actions instead?
Does this need to run on the server, and if so, which clients - IE or Ajax?
-Rob
Hi Rob,
thanks for reply.
Currently i am working in desktop application not required in server.
when i click the macro action in button it is opening the qvw file in the same window , so it is not performing the triggers of On-open actions.
I think if it is opened in new window the the triggers will work fine (not sure whether i am correct).
what to change in the code to open in new window ?
Thanks