Skip to Content

Image in report (runtime)

Not usable PictureObject (.NET) and Image settings from internal scripts (formula).

Situation 1:

By default report render for print, but before export on disk I want to show PictureObject with specified URL (from my .NET code).

Situation 2:

I need set Image path (URL) from formula, not static.

It's problem for a long time ago. And not have good solution.

PS. NO ANY PARAMS FOR REPORT.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Mar 19, 2015 at 08:19 PM

    What version of CR are you using?

    Don

    Add a comment
    10|10000 characters needed characters exceeded

    • I don't use ReportAppServer.

      Public Sub SetImageURL(objid As String, value As String) Dim ro As CrystalDecisions.CrystalReports.Engine.PictureObject = rptView.ReportSource.ReportDefinition.ReportObjects.Item(objid) ro.<SET URL OR PATH> = value End Sub

      http://f6.s.qip.ru/EBATVeBV.png

      For TextObject it's poor but works:

      Public Sub SetObjectText(objid As String, value As String)

      Dim ro As TextObject = rptView.ReportSource.ReportDefinition.ReportObjects.Item(objid)

      ro.Text = value

      End Sub

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.