Posted 12 February 2019, 10:16 am EST
Howdy,
Can you help me with providing a vb.net sample for pdfdocument viewer, using pdfdocumentsource i believe?
Thanks in advanced,
Forums Home / ComponentOne / General Discussion
Posted by: mysql.jorge on 12 February 2019, 10:16 am EST
Posted 12 February 2019, 10:16 am EST
Howdy,
Can you help me with providing a vb.net sample for pdfdocument viewer, using pdfdocumentsource i believe?
Thanks in advanced,
Posted 12 February 2019, 10:53 am EST
Here’s the page for it, but cant find a sample for it.
https://www.grapecity.com/en/controls/studio/pdfdocumentsource
Using this or C1FlexViewer.
Please help.
Posted 12 February 2019, 11:41 am EST - Updated 4 October 2022, 8:06 am EST
Posted 12 February 2019, 11:42 am EST
Ok, I’ve managed to make some progress with the c1flexviewer.
But when i add this object to a c1ribbonform, the c1flexviewer object overlays the form minimize/maximize area, being on top of them.
Check the attached image, any idea why?
See in the top right position, the object ontop of the form
Posted 13 February 2019, 6:15 am EST
Hello,
Thank you for sharing the image.
I would like to inform you that this is the expected behavior. C1FlexViewer contains C1Ribbon control that is integrated with the title bar of the owner C1RibbonForm.
If you wish to prevent integration of the form header with C1FlexViewer, you may add a Panel control to the Form, then instead of adding C1FlexViewer to C1RibbonForm directly, add it to Panel’s Controls collection.
Thanks,
Ruchir
Posted 13 February 2019, 6:45 am EST
Hi Ruchir,
Thank you, got it.
As for other file types, in case: images (jpg/png/bmp) or word files, is the flexviewer capable or preview them?
If yes can you post sample?
stream = New IO.MemoryStream(b) Dim pp As New C1.Win.C1Document.C1PdfDocumentSource pp.LoadFromStream(stream) C1FlexViewer1.DocumentSource = pp
==
Posted 13 February 2019, 7:14 am EST - Updated 4 October 2022, 8:06 am EST
Apart from that, give me another help.
I want to start it with the ribbon minimized, i’ve been searching the properties like “C1FlexViewer1.Ribbon.” but I’m not seeing which options is to make it minimize on the form load.
Can you give this 2nd help?
Jorge,
Posted 13 February 2019, 7:23 am EST
Sorry, a 3rd thing
How to localize/change the text of the buttons on the ribbon to my language?
I can/want to change them on my own, just light me on how to change it.
Thanks,
Posted 14 February 2019, 3:30 am EST
Hello,
C1FlexViewer1.Ribbon.Minimized = True
3. To localize text of ribbon buttons (or FlexViewer in general), you need to use the Localize dialog box (See attached screen-shot). Additionally, in case you are using English version Windows, you may need to specify UICulture explicitly:```
Thanks,
Ruchir
[img]https://gccontent.blob.core.windows.net/forum-uploads/file-328d4053-1f8f-4604-bfbf-69580e085d9b.png[/img]
Posted 14 February 2019, 5:27 am EST
Perfect, thanks for the 3.
About localize, yes I use EN OS, so my end users will have PT language.
Jorge,
Posted 15 February 2019, 7:32 am EST
Hi Jorge,
In order to localize viewer text for portuguese language, you need to set UICulture, like I mentioned earlier:```
Thread.CurrentThread.CurrentUICulture = new CultureInfo(“pt”);
~Ruchir