cancel
Showing results for 
Search instead for 
Did you mean: 

Insert OLE Object at runtime in a report (Crystal report 2008)

Former Member
0 Kudos

Hello

I need insert a WORD document at runtime into Crystal report 2008.

Is it possible do it this using RAS SDK for .NET?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Possible, but remember that only the 1st page of the word doc will be added - same as in the CR designer.

There is a number of sample apps at [this|http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/80774579-b086-2b10-db91-ed58c4dda375] link. Add image sample may be good to look at.

Also see [this|; thread.

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

Hi Ludek,

Is there something similar in Crystal Reports 2011 to be able to insert an OLE object (image for ex) dynamically? I've the crystal report, but I'm fairly new to Visual Studio/C# coding, could you please direct me to any resource with steps to achieve this?

former_member188030
Active Contributor
0 Kudos

Design your reports with CR 2011.

Install VS 2010 or VS 2012.

Install CR developer for VS (SP7 install exec) on top of VS.

http://scn.sap.com/docs/DOC-7824

Use version 13 CR assembly references to your app.

Here are the sample codes.

http://scn.sap.com/docs/DOC-28646

http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/80774579-b086-2b10-db91-ed58c4dda375

samples are written for CR 12 but you could use the same code and built your own app with CR 13 assembly references.

- Bhushan

Former Member
0 Kudos

Bhushan,

Many thanks for the direction.

Which edition of VS 2012 should I go for? Will the Express edition suffice or should I be using the Ultimate / Professional edition pack?

Also, where in the sample codes should I be modifying  to link the VB code to my Crystal report?

former_member183750
Active Contributor
0 Kudos

You have to go with Ultimate / Professional. CR will not integrate with Express...

Re:

Also, where in the sample codes should I be modifying  to link the VB code to my Crystal report?

1) .ReportLoad

2) Database logon - PWD, UI, etc.

3) Parameters

4) Selection formulas

.

.

.

(2) on is optional - depending on if there is a db logon and / or if you want to do the logon for the users. Ditto for parameters, selection formula, etc.

- Ludek

Former Member
0 Kudos

Ludek, Bhushan,

I've now got Visual Studio 2010 Professional. I've also downloaded one of the samples - "NET-VB2005_RAS-Unmanaged_CR12_Add_Image-From-File". When I try to open the project in VS 2010 IDE, it tries to convert the project to a compatible format and throws an error that the conversion cannot be done because the source code was built in a different version of VS.

What am I doing wrong? How can I access / edit what is in the source code?

Also, does Crystal Reports Enterprise integrate with Visual Studio 2010 & above?

former_member183750
Active Contributor
0 Kudos

Weird. I downloaded the project. Started VS 2010. Went to File | Open | Web Site and then just got asked if I wanted to upgrade the project...

CR Enterprise does integrate, as a managed reporting solution only. E.g.; you can not open the report created in CR 4 E as reportdocument.Load(Path to report). You also would have to use version 14 assemblies for BI 4.x, not version 13 from CRVS.

- Ludek

Answers (0)