Results 1 to 6 of 6

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

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128

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

    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

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    didn't this help?

    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'>")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128
    the blue underline appered under the web in:
    CrystalHtmlTextWriter(Web .HtmlReportRender

    what do i need to import?

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    VB Code:
    1. Imports CrystalDecisions.Web
    2.  
    3. ...
    4. Dim graph As New CrystalDecisions.Web.HtmlReportRender.CrystalHtmlTextWriter(HtmlReportRender.HtmlOutputSchema.Html32)
    5. graph.Write("<img border='0' src='The_Path_To_Your_Pic_File' width='400' height='400'>")

    As i said in the other post, its just a raw idea and not tested. Please test it and let me know the results.

    By the way, I wonder if you can deploy reports of crystal reports in web forms without the need of buying liscence.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    128
    this problem took a long time to slove, but i was looking the the wrong direction.

    this is what i did

    i wrote the image that is created into the sql server,
    then loaded the image into a dataset,
    used this dataset as the source for the crystal report.

    used this information to write into the database;How to write/read text/image to/from sql database

  6. #6
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Thanks
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

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