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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rendering a Microsoft Word OLE Object

Status
Not open for further replies.

westwoodnz

Programmer
May 17, 2009
3
AU
Hi,

I am using the Crystal Reports for Eclipse 2.0 ( cr4e_2.0.0 ) in my Java web application.
Also I am using the Crystal Report Developer (or designer) version 11.5.3 to design my reports.

I have pre made documents in Microsoft Word which I have to enter into crystal reports..these documents consist mainly of tables. I'm thinking the easiest way of doing this is to insert the word document as an OLE object. When I do so, the preview of this OLE object is fine launched inside the designer, however, when I render this page inside of my
Java web application, the text inside of the tables gets pushed up a little bit making the text appear outside of a few of the table cells. I have tried fiddling around with it but to no vail.

The question is that is this happening because I am using the crystal report for eclipse Java viewer at runtime? Or there are a few settings
that I can play with to produce a nicely fitted OLE object?

If this means that I can not improve the way the tables inside the OLE object are being displayed, what is the next best solution for writing up these word documents inside of crystal?

Thank you very much for your time.
 
Hi,
The shift in viewers probably makes the alignment almost impossible to perfect since the rendering engine may have different metrics...

You could use a hyperlink to the actual document in the appropriate part of the report - I am assuming that the table data is not generated by Crystal.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanks Turkbear!

Unfortunately my report uses a few field parameters inside of the word document table. Is the hyperlink still feasible in this case? If not anyone else has any ideas?

Cheers
 
Hi,
Not sure you can add the field values to the hyperlink in such a way that the Word table would 'read' them into the proper table cell....maybe a macro in Word could be developed to do that, but it is beyond my skill set to be sure..






[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I found out why I was having this probelm. This is because OLE objects (other than pictures) are unsupported for Crystal Reports for Eclipse at runtime.

you can check it out on the following link for What's New in Crystal Reports for Eclipse 2.0


However knowing that, how is one supposed to draw a table and render it in the Java runtime version?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top