Skip to Content
author's profile photo Former Member
Former Member

[BO6.5] C#2005 open document in a winform

Hello,

I have a problem i want to refresh a Business objects document i have this code:

string DocNom;
busobj.Document Doc;
busobj.Application bo;
bo= new busobj.Application();
Doc=bo.Documents.Open(Docnom,True,False)

When i run it i have an error: No overload for the method 'Open' takes arguments'3 '. So my question is do you know the code to open and refresh a business object document in C# 2005

thanks for your help

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 07, 2008 at 08:49 PM

    This forum is specificaly for Business Objects Enterprise and Crystal Reports.

    I think you'll have better luck posting to the Legacy Products forum which includes support for Business Objects Enterprise 5.x and 6.x.:

    SAP BusinessObjects BI Legacy Products

    Ludek

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 07, 2008 at 09:35 PM

    Hello Antonio,

    You're using the COM-based BusinessObjects Reporter SDK in C# via COM Interop.

    That's problematic:

    1. The Reporter SDK isn't tested or fully supported with .NET

    2. C# does not support optional parameters, so you'd have to specify all five.

    Sincerely,

    Ted Ueda

    Add a comment
    10|10000 characters needed characters exceeded

    • Different issue - remember you're using COM Interop.

      You'd interact with it using Interfaces.

      You'll encounter lot more difficulties if you keep using C# with COM Interop if you're not familiar with it.

      Also, it's not something that's supported by BusinessObjects.

      Sincerely,

      Ted Ueda

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 08:29 AM

    hello,

    thanks at all. All is wright now my problem was this declaration:

    busobj.Document Doc;

    you must replace this one by this:

    busobj.IDocument Doc;

    And it's ok after

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.