ImageField can't update picture location

Posted by: Jchan on 1 December 2020, 3:39 pm EST

    • Post Options:
    • Link

    Posted 1 December 2020, 3:39 pm EST - Updated 3 October 2022, 11:31 pm EST

    Hi

    I am converting one of the older version C1 report into C1Flex report and I have problem with the imageField that Picture is not member of C1.Win.FlexReport.FieldBase .

    Do you have a sample that how can I update the picture location while I run my application ?

    Thanks

    Jeremy

  • Posted 2 December 2020, 3:51 am EST

    Hi,

    You need to cast the FieldBase to the specific type of field to get access to the specific properties, in your case, you have an ImageField, you need to cast the FieldBase to ImageField.

    
                Dim imgField As ImageField = CType(report.Fields("Field1"), ImageField)
    
           imgField.Picture = “image_path”
    
    

    Please refer to the sample attached. If you have any other questions, please let me know.

    Regards,

    Prabhat Sharma.

    FlexReportImageField.zip

Need extra support?

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

Learn More

Forum Channels