Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to publish non-Crystal files in BO XI R2?

Status
Not open for further replies.

hilfy

Active member
Oct 31, 2003
2,563
US
Development Environment: Visual Studio 2005, C#

I'm working on a project where I need to publish non-Crystal Report files - specifically Excel and Text files - to a specified folder in BusinessObjects XI R2. However, I'm having a very hard time finding any samples for how to do that. I know how to publish Crystal Report files, so I figure I'll need to instantiate a PluginManager object of the correct type, but I'm not sure how to load the file from there.

Can anyone provide some sample code or point me in the right direction so that I can figure this one out? Thanks!

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Go into the CMC - navigate to the folder you wish to add the new object to.

Find the New Object button located in the top right side of the interface.

Click on object type on left hand side of interface.

Click on browse butotn to find the object you are wishing to add.

Click Submit button on bottom right of interface.

Object should now appear in the folder you wanted it to go in.

Cheers
paulmarr
 
Paulmarr, thanks but I'm trying to do this programmatically with the SDK, not through the CMC or InfoView.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
I haven't tried it yet, but I got a code snippet for publishing a text file from a person in Business Objects tech support:
Code:
txtPath = @"C:\mytext.txt";
ceSession = (new SessionMgr()).Logon(username, password, cmsname, authtype);
InfoStore infoStore = new InfoStore(ceSession.GetService("InfoStore"));
int folderID = ((InfoObject) infoStore.Query("Select TOP 1 SI_ID From CI_INFOOBJECTS "
+ " Where SI_KIND='Folder' "
+ " And SI_NAME='" + folderName + "'")[1]).ID;
InfoObjects txts = infoStore.NewInfoObjectCollection();
Txt txt = (Txt) txts.AddEx("Txt");
txt.Title = "Test Text";
txt.Files.Add(txtPath);
txt.ParentID = folderID;
infoStore.Commit(txts);

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top