Posted 15 June 2020, 4:58 pm EST
Howdy,
I use c1flexviewer for PDF files.
Is it possible to use it for jpg/image files aswell?
If yes is it possible to provide such example? if yes in vb.net please.
Thanks in advanced,
Jorge
Forums Home / ComponentOne / WinForms Edition
Posted by: mysql.jorge on 15 June 2020, 4:58 pm EST
Posted 15 June 2020, 4:58 pm EST
Howdy,
I use c1flexviewer for PDF files.
Is it possible to use it for jpg/image files aswell?
If yes is it possible to provide such example? if yes in vb.net please.
Thanks in advanced,
Jorge
Posted 16 June 2020, 4:30 am EST
Hi Jorge,
Sorry, but it is not possible to load the image in FlexViewer control. You can follow any of the below-given approaches to load the image file:
1: To load the image you can use our C1Bitmap control as given in the link below :
https://help.grapecity.com/componentone/NetHelp/Bitmap/webframe.html#QuickStart.html
2: You can also use C1PrintDocument to show the image using RenderImage object. Please refer to the product sample “RenderObjects” demonstrating this. which is found in your system at location : \Documents\ComponentOne Samples\WinForms\v4.0\C1Preview\VB\RenderObjects
Regards,
Prabhat Sharma.