cancel
Showing results for 
Search instead for 
Did you mean: 

Moving to CR 2008 - Active X Viewer and CDO32

Former Member
0 Kudos

All,

Hello! I am the lead for a project that is written in C++/MFC. Currently our use of CR 8.5 is pretty simple -- we have several dialogs in which we've embedded the Active X viewer, and the data source is always constructed in-memory using CDO32. (We never use any other data sources like ODBC... it's always CDO.)

From reading the various articles and blogs, I grok that if I want to use 2008, I think I have to move away from the Active X viewer/CDO (although I did find that there is an ActiveX viewer in 2008??)... Can someone just summarize for me in a couple of sentences what my approach should be? Should I stick with the activex viewer in 2008, and replace my "CDO code" with somnething else? Should I rip out the ActiveX viewer and replace it with the .NET viewer? If so, is there something analogous to CDO in the CR .NET APIs?

Thanks in advance,

Mike Johnson

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

You asked for someone just summarize fin a couple of sentences what your approach should be . So here goes:

Can someone just summarize for me in a couple of sentences what my approach should be?

- Go to .NET or Java

Should I stick with the activex viewer in 2008

- No. You are not licensed to use the activeX viewer in CR 2008. It's there for "internal" purposes...

Should I rip out the ActiveX viewer and replace it with the .NET viewer?

- Yes. See above

is there something analogous to CDO in the CR .NET APIs

- Yes. ADO .NET datasets

If you need more info, like you said there is tons of "stuff", but if you need more, let me know and I'll set you up with what ever resources I know of...

Addition - sorry - did not mean to step on Jason's answer.

But I also wanted to say that in my experience, you have a 50 / 50 chance of going from CR 8.5 CDO to CR 2008 .NET SDK and ADO .NET Datasets in particular. E.g.; you may no only be looking for a complete code rewrite, you may be looking at complete report rewrite... But, only one way to know...

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Edited by: Ludek Uher on Jul 19, 2011 8:10 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hmmm... OK, now I have installed a trial of XI R2 and SP6 (obtained through SAP), and I cannot in any way get the ActiveX Viewer to show up on a C++ or a .NET app. Basically if I just drop the ActiveX Viewer on any dialog (even in a brand-new app), it simply crashes when I go to display it, and there's the following error:

InitNew or Load on OLE control {6F0892F7-0D44-41C3-BF07-7599873FAA04} failed.

>>> Result code: 0x80004005

Where should I go for help with this? This is on a Windows 7 32-bit machine. The ActiveX Viewer in CR XI R2 is supposed to work on Win7 right (after applying SP6)?

Thanks,

Mike

former_member183750
Active Contributor
0 Kudos

You will not like me for what I will say here - but I'm just the messenger so no shooting please ...

CR XI R2 is out of support. Patch support terminated about a year + ago and any support terminated June 30 of this year. No need to panic...

We'll do what we can over these forums, but there will be no fixes or phone, ok?

1) read [this|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/25302] [original link is broken] [original link is broken] [original link is broken]; blog and follow it to get to CR XI R2A - unless that is what they sold you - compare the version of what you got to what I have in the blog.

2) Read [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0751a7f-a81d-2b10-55a0-e6df0e1bab6d] article on how to work with the RDC in .NET

3) Remember that you do not have to go with .NET in order to upgrade your app (as far as CR is concerned anyhow). The CR XI R2A RDC will work just fine in your C++MFC app as CR 8.5 did.

- Ludek

Former Member
0 Kudos

Hi.

Crystal Active X viewer "restored" in Crystal Reports 2011 version.

It correctly work under Windows 7 (x86 and x64), Windows Server 2008 R2 (x86 and x64). Tested.

Unfortunaly, Crystal Run Time Application COM object was not found in version Crystal Reports 2011.

So, now we use together Run Time from CR XI and Active X viewer from CR 2011.

Edited by: AlexeyPlt on Oct 25, 2011 7:36 AM

former_member183750
Active Contributor
0 Kudos

Alexey, you are breaking your licensing agreement.

You are not allowed to use any CR2011 component for development...

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

OK, thanks for the straight answers. Ugh -- like I said, my app is a C+/MFC app, so the thought of trying to embed a .NET report viewer into my C/MFC dialogs is painful. It's unfortunate with Microsoft's recent stance about the "renaissance" of C+ and MFC that SAP has eliminated the ability to move beyond CR XI if you want to stay in that world, and for me to jhave my app work in Windows 7.

Thanks,

Mike Johnson

former_member183750
Active Contributor
0 Kudos

Yeah, understood Mike. Unfortunately, too much water under that bridge. Would be nice if Microsoft would figure out what they want to do too :). But, who knows what the future holds.

- Ludek

former_member184995
Active Contributor
0 Kudos

Hi Mike,

There is no activex viewer in CR 2008 (not that you are licensed to use at any rate).

You would need to use the .NET viewer instead.

You would also move from CDO to something like ADO.NET datasets.

Jason