Can I have 2 displays open at once in ActiveView and can I pass information fom one to the other?
No, ActiveView allows opening of only 1 display at a time.
These displays are being generated by a .NET addin
If this means you are creating and handling your ActiveView control from within a .NET add-in, then I would recommend you simply create and manage 2+ separate ActiveView controls, each with a separate ProcessBook display, and toggle their "visibility" as appropriate (i.e. make them visible or not in the environment you are using).
Hope this helps!
My initial testing lead me to think that multiple displays may be do-able. Having implemented the solution though, I realised that it was not!
The displays are not generated on the fly in .NET (it takes over 30 seconds to generate some of them). Instead they are created in bulk by .Net for later viewing in ActiveView. Is there a way to access the ActiveView control from the VBA of the display running inside it?
The solution I have come up with involves reading and writing a 'sessionlog' file in the user's profile folder (C:\Documents and Settings\user) to maintain the breadcrumb trail. This seems to work, with one issue:
The second time I open any given display using this method, I just get a blank grey rectangle instead of a display. This is the code I am using to open the display
Set newDisplay = Application.Displays.Open(FILEPATH & newDisplayName, True)
Is there another way to do this? I am pretty sure that before this, when I was using Processbook buttons to switch displays, it worked fine. However it is also possible that I didn't test it as thoroughly! Do PB buttons use a different method to Application.Displays.Open()?
I was a looking for a solution for pretty much the same problem as Alistair?
I have a PDI which opens another --Set newDisplay = Application.Displays.Open(FILEPATH & newDisplayName, True) -- then sets a variable in the new display and closes itself. It works fine in ProcessBook, but not in ActiveView. When I trie to get thisdisplay.path, it gets my temporary folder and not the path on the sharepoint server.
How can I make this work in ActiveView?
Have Alistair found a solution?