Emf in FlexReport

Posted by: sviluppo on 4 October 2017, 6:18 pm EST

    • Post Options:
    • Link

    Posted 4 October 2017, 6:18 pm EST

    Hi,

    we are developing a software where we need reports and we are testing the componetone library for wpf especially we would like to embed an emf image in a report.

    We did this using C1PrintDocument with Object RenderImage

    RenderImage pictureBox = new RenderImage();
    pictureBox.Image = System.Drawing.Image.FromFile("image.emf");
    

    Now we are trying C1FlexReport and we are using ImageField but It doesn’t work.

    ImageField pictureBox = new ImageField();
    pictureBox.Picture = System.Drawing.Image.FromFile("iamage.emf");
    

    where are we wrong?

    Thank you

  • Posted 8 October 2017, 7:37 pm EST

    Hi,

    To add an ImageField at runtime, add it to a particular section as depicted in the attachment.

    To set an image for an ImageField added in the designer, one must typecast the field since fields in FlexReport are of the type FieldBase, by default. This is done using the below code snippet:

    
    ImageField img = (ImageField)rep.Fields["FieldChart"];
    System.Drawing.Image theImage =System.Drawing.Image.FromFile(ImagePath);
    img.Picture = theImage;
    

    Regards,

    Esha

    https://www.dropbox.com/s/6f50fbmj7nrzokz/prj_WPF_ImageField.zip?dl=0

  • Posted 9 October 2017, 6:02 pm EST

    How can we add a video title and clicking on the title the video starts playing can you provide me some suggestion.

    http://bestpowerdrills.net/cordless-drills/

  • Posted 10 October 2017, 7:49 pm EST

    Hi,

    Can you please let us know where the video for the report comes from? If it is available online, it can be referred to from a report using hyperlinks.

    http://help.grapecity.com/componentone/NetHelp/FlexReportWPF/C1.WPF.FlexReport.4~C1.WPF.FlexReport.FieldBase~Hyperlink.html

    However, FlexReport does not allow embedding videos from the local machine on a report.

    Regards,

    Esha

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels