### View in WebView

JavaFX WebView does not support viewing PDF.
NOTE: Status 20150418
To view in standard browser, use FX or Inline Java.
`Sub Process_Globals
Private fx As JFX
Private joInlineJava As JavaObject = Me
End Sub`
'The file test.pdf is stored in the DirApps folder (=Objects)
`Sub AppStart (Form1 As Form, Args() As String)
'Using B4J FX
fx.ShowExternalDocument("test.pdf")
'
'OR
'
'Using Inline Java
joInlineJava.RunMethod("PDFViewTest", Array("test.pdf"))
End Sub`
If JAVA
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
public static void PDFViewTest(String mfile) {
File file = new File(mfile);
try{
Desktop.getDesktop().open(file);
} catch (IOException e) {
e.printStackTrace();
}
};
End If

Changed: , Category: PDF, File: T6C231M1698.htm, ID: 1698