locked
show xml image in crystal report using c# RRS feed

  • Question

  • hi friends,

    i m working c# and vs2008

    i want to show picture in crystalreport using xml database ...


    Thanks & Regards,
    • Moved by edhickey Tuesday, July 19, 2011 1:51 PM (From:.NET 3.0/3.5 Windows Workflow Foundation)
    Tuesday, July 19, 2011 1:16 PM

All replies

  • Include the blob in the xml file and Cr should be able to read it into the report.

    In the Designer create a new report and Select ADO .NET ( XML ) as the DB driver and then select your XML file which also includes the schema.

    As a test in your app write the schema to a file like so:

    ds.WriteXml("c:\\sc.xml", XmlWriteMode.WriteSchema);

    Then create your report off the XML file and you should see the images.

    Thanks

    Don


    Don Williams
    Tuesday, July 19, 2011 3:37 PM
  • Thanks for reply..

    but i cant understand..


    Thanks & Regards,
    Wednesday, July 20, 2011 5:15 AM
  • In your code that queries the database to generate the XML data source use the above to write the xml file with the images to disk. Then create a new report based on the XML file you just saved using ADO.NET ( XML ) as the reports data driver. Now you can see the format CR requires to read images from an XML file.

    Don


    Don Williams
    Wednesday, July 20, 2011 2:14 PM