Skip to content

Instantly share code, notes, and snippets.

@nicdoye
Created July 26, 2013 13:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicdoye/6088707 to your computer and use it in GitHub Desktop.
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".
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