Use cWebView.pkg Use cWebPanel.pkg Use cWebForm.pkg Use csfWebPdfViewer.pkg Use cWebCombo.pkg Object oPdfViewerWasmDemo is a cWebView //Set piWidth to 700 Set psCaption to "Wasm PdfViewer Demo" // Your DDO structure will go here Object oWebMainPanel is a cWebPanel Set piColumnCount to 12 Object oSelectPdfCombo is a cWebCombo Set piColumnSpan to 0 Set psLabel to "Select PDF" Set pbServerOnChange to True Procedure OnFill Forward Send OnFill Send AddComboItem "DEBUG" "DfSplat-Zoom-UK-20200709.pdf" Send AddComboItem "CLOUD" "DataFlex Licensing in Cloud and Virtual Machine Environments.pdf" Send AddComboItem "SF" "SyncFusion-Zoom-UK-20201022.pdf" Send AddComboItem "SEC" "Security of DataFlex Web Framework Applications.pdf" Send AddComboItem "PATCH" "Security Patch - Web Property Cross-Session Contamination.pdf" Send AddComboItem "NONE" "None" End_Procedure Procedure OnChange String sNewValue String sOldValue String sPdf String sPath Forward Send OnChange sNewValue sOldValue If (sOldValue<>"" and sNewValue<>sOldValue) Begin Move "" To sPdf // The pdf demo expects that the syncfusion library is installed under http://localhost/SyncFusionDemo // adjust the URL accordingly //Move "http://localhost/SyncFusionDemo/Pdfs/" To sPath Move "./Pdfs/" To sPath Case Begin Case (sNewValue="DEBUG") Move "DfSplat-Zoom-UK-20200709.pdf" to sPdf Case Break Case (sNewValue="CLOUD") Move "DataFlex Licensing in Cloud and Virtual Machine Environments.pdf" to sPdf Case Break Case (sNewValue="SF") Move "SyncFusion-Zoom-UK-20201022.pdf" to sPdf Case Break Case (sNewValue="SEC") Move "Security of DataFlex Web Framework Applications.pdf" to sPdf Case Break Case (sNewValue="PATCH") Move "Security Patch - Web Property Cross-Session Contamination.pdf" to sPdf Case Break Case Else Send Unload of oWebPdfViewer Case End If (sPdf<>"") Begin Send Load of oWebPdfViewer (sPath+sPdf) End End End_Procedure End_Object Object oWebPdfViewer is a csfWebPdfViewer Set piColumnSpan to 12 // // Remote URL // Set psDocumentPath to "http://localhost/TableManager/DfSplat-Zoom-UK-20200709.pdf" // or locally in the html folder Set psDocumentPath to "./Pdfs/DfSplat-Zoom-UK-20200709.pdf" // Use the WASM version of the control // under IIS only //Set psResourceUrl to "http://localhost/TableManager/SyncFusion/dist/ej2-pdfviewer-lib" // This works in FlexTron as well as IIS Set psResourceUrl to "./SyncFusion/dist/ej2-pdfviewer-lib" { WebProperty=Client } Property String psCurrentPdf Procedure Load String sPdf WebSet psCurrentPdf to sPdf Forward Send Load sPdf End_Procedure End_Object // place controls here End_Object End_Object