Created
July 26, 2013 13:06
-
-
Save nicdoye/6088707 to your computer and use it in GitHub Desktop.
How to open BusinessObjects Designer XI R3.1 in C#. This is if you add Interop.DesignerX12 as a reference. If you use Interop.Designer, the package namespace is "Designer" not "DesignerX12".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace DesignerTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
DesignerX12.IApplication designer = new DesignerX12.Application(); | |
DesignerX12.IConnection connection; | |
designer.LogonDialog(); | |
DesignerX12.IUniverse universe = designer.Universes.Open(); | |
if (universe == null) | |
Console.WriteLine("Universe was null"); | |
designer.Interactive = true; | |
connection = designer.Connections.Item[universe.Connection]; | |
Console.WriteLine(connection.DatabaseSource); | |
designer.Quit(); | |
System.Threading.Thread.Sleep(10000); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment