PivotCuveX with C#

Discussion forum for PivotCubeX component. Common usage questions. Bug and problem reports

Moderator: Alex Zencovich

PivotCuveX with C#

Postby kd-t » Thu Sep 18, 2008 6:34 pm

Hello,

I'm triyng to use PivitCubeX with C#, and I would like tl know hot to Load cube from XML, I 'm not able to write the code.

Thank You.
kd-t
Guest
 
Posts: 3
Joined: Thu Sep 18, 2008 6:31 pm

Re: PivotCuveX with C#

Postby AlexZencovich » Fri Sep 19, 2008 4:31 am

Does PivotCubeX.LoadFromXML(filename) not work?
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Re: PivotCuveX with C#

Postby kd-t » Tue Sep 23, 2008 7:25 am

Hello again,

I have created an PivotCubeX object named PCX, so I use PCX.LoadFromXML(""), but it gives me the next error: 'AxPivotCubeXLib.AxPivotCubeX.LoadFromXML(MSXML2.IXMLDOMElement)' and I don't know what is a MSXML2.IXMLDOMElement.

Maybe yo could explain it to me.

Does not exist an aplication XMLTOCUB or something like that?

Thank you again.
kd-t
Guest
 
Posts: 3
Joined: Thu Sep 18, 2008 6:31 pm

Re: PivotCuveX with C#

Postby AlexZencovich » Tue Sep 23, 2008 12:49 pm

IXMLDOMDocument (IXMLDOMElement) is OLE interface to MSXML2 object. You should not pass empty refernce to that method, it will not create new one. You have to create XML document and pass pointer to root or another existed branch of that XML doument.

Just look how it works for PivotCube VCL demo (you may do similar)

procedure TForm1.LoadCubefromXMLClick(Sender: TObject);
var
Doc : IXMLDOMDocument;
begin
try
if PivotCube1.Active then
PivotCube1.Active := False;
Doc := CreateComObject(CLASS_DOMDOCUMENT30) as IXMLDomDocument;
Doc.async := False;
Doc.load('cubedemo.xml');
PivotCube1.LoadFromXML(Doc.documentElement);
finally
Doc := nil;
end;
end;
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am

Re: PivotCuveX with C#

Postby kd-t » Thu Oct 02, 2008 7:38 am

Hello again,

we are testing your demo version and we are buying the complete version.
I would like to know if it include source code in .NET of the XML2CUB or if it is in DELPHI.

Thank you very much.

Simon.
kd-t
Guest
 
Posts: 3
Joined: Thu Sep 18, 2008 6:31 pm

Re: PivotCuveX with C#

Postby AlexZencovich » Thu Oct 02, 2008 6:42 pm

All source code is Delphi (Win32)
Best regards,

Alex Zencovich
-------------------------------------------------------------------------------------------------------------------------------------------
www.pivotcube.com - OLAP solution for Delphi, C++ Builder and ActiveX environment
AlexZencovich
Site Admin
 
Posts: 580
Joined: Sun Jun 18, 2006 10:09 am


Return to PivotCube ActiveX

Who is online

Users browsing this forum: No registered users and 6 guests

cron