Results 1 to 5 of 5

Thread: i am using vb.net and crystal reports for visual studio.net

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

    Unhappy i am using vb.net and crystal reports for visual studio.net

    please can you show me the way to display a image that is created at runtime in a report, this picture will be named after the user that logs in and can be different each time they create the report

    i am using vb.net and crystal reports for visual studio.net

    thanks,

    v.URGENT
    Tom

  2. #2
    Member EagleEye's Avatar
    Join Date
    May 2002
    Location
    South Carolina, USA
    Posts
    43
    Just a few more details would help.
    Eagle Eye

    "Programming is easy ... when you are done."

  3. #3
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    you can manipulate text objects of crystal reports at run time but I couldn't find a way to change the PictureObjects imag source. So you may define a field in a table containing those images and add it to your report. so changing the pic in the table will affect your report. Tell me if you found another way, am curious to know.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128
    i have a web application created with vb.net

    this application can be access by many different users at the same time

    each user select various options and runs a query to retrieve data from an inSQL server

    depending on what they have defined a teeChart line chart image is created and stored in the application folder on the server named [username].jpeg

    a crystal report is created and the data retrieved is displayed in the report

    i don't want to use the line chart from crystal reports.

    i need to display the image that has been created within the report.

    both the report and the image are created at runtime.

    there must be a way of creating an OLE object and defining it to the sertver.mappath(username).jpeg file.

    i know that is possible with different versions of crystal reports using the RDC (Report Design Component).

    BUT I AM USING CRYSTAL REPORT FOR VISUAL STUDIO .NET!

    can it be done?

    thanks
    Tom

    ps, only shouting because this is becoming v. URGENT and i can't find a way!

    please help, if you need any more info just ask

    thanks again.
    tom

  5. #5
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    This is only an untested raw idea, no warranty to work
    .Test to see if it helps you.
    VB Code:
    1. Dim graph As New CrystalDecisions.Web.HtmlReportRender.CrystalHtmlTextWriter(Web.HtmlReportRender.HtmlOutputSchema.Html32)
    2.             graph.Write("<img border='0' src='The_Path_To_Your_Pic_File' width='400' height='400'>")
    Last edited by Lunatic3; Mar 13th, 2003 at 08:33 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width