crawler009
Member
Hello guys
i'm trying to display a pdf file in factorytalkview and remove the toolbars,
so the user dont has access to the Windows file system (via save).
I installed the foxit reader and adobe reader on my system, FTV 9/Win10.
But i cant get it working like it should / i want to.
1. Microsoft Web browser activex
I open the pdf with
If only Foxit is installed, the toolbars is always shown.
2. FoxitReader Control activex
I open the pdf with
It shows always the the toolbar with the save button.
3. Adobe PDF Reader 11 activex
I cant get it to load a pdf, it shows no error on diagnostics, but it does nothing.
According to http://www.plctalk.net/qanda/showthread.php?t=42393 it should work.
I tried
but nothing worked for me.
Also wired is that if i change the hight or width
it doesnt resize. It seems not respoding to anything. I tried this on a second
pc with FTVSE8.2/WIN7 and same behaviour. So i do something wrong. It
is exposed to vba as "vba Control"
edit: i can see that the green (vba) border gets resized to the new size, but the pdf logo with the grey background remains
in the original position. As if it doesnt refreh correctly.
I think the Adobe activex could be interesting, because it has a "AdobePDFReader1.setShowToolbar " method.
Can anybody give me a hint what i could do to get the adobe plugin working or remove the toolbars from foxit? Or a alternative way/software to show pdf files?
i'm trying to display a pdf file in factorytalkview and remove the toolbars,
so the user dont has access to the Windows file system (via save).
I installed the foxit reader and adobe reader on my system, FTV 9/Win10.
But i cant get it working like it should / i want to.
1. Microsoft Web browser activex
I open the pdf with
Code:
MicrosoftWebBrowser1.Navigate2 ("C:\test.pdf#toolbar=0&scrollbar=0&navpanes=0")
It hides (mostly, but not always) the navigation bar and the toolbar. But if i press F4/F8 the toolbars appear (Adobe toolbars)If only Foxit is installed, the toolbars is always shown.
2. FoxitReader Control activex
I open the pdf with
Code:
FoxitReaderControl1.OpenFile ("C:\test.pdf")
3. Adobe PDF Reader 11 activex
I cant get it to load a pdf, it shows no error on diagnostics, but it does nothing.
According to http://www.plctalk.net/qanda/showthread.php?t=42393 it should work.
I tried
Code:
AdobePDFReader1.LoadFile ("C:\test.pdf")
AdobePDFReader1.src = "C:\test.pdf"
invoke display3.AdobePDFReader1.src("C:\test.pdf")
Also wired is that if i change the hight or width
Code:
AdobePDFReader1.Height = 200
AdobePDFReader1.Width = 400
pc with FTVSE8.2/WIN7 and same behaviour. So i do something wrong. It
is exposed to vba as "vba Control"
edit: i can see that the green (vba) border gets resized to the new size, but the pdf logo with the grey background remains
in the original position. As if it doesnt refreh correctly.
I think the Adobe activex could be interesting, because it has a "AdobePDFReader1.setShowToolbar " method.
Can anybody give me a hint what i could do to get the adobe plugin working or remove the toolbars from foxit? Or a alternative way/software to show pdf files?
Last edited: