Last updated
Was this helpful?
Last updated
Was this helpful?
The sample opens an empty viewer first.
Select and open an OZR from the select option repository_files/demo
.
Enter your input data in the form.
Click the Export button. The current open form will be exported to the server in the specified format.
The exported target file will be listed in the pane webapps/EXPORT
.
You can open exported files again.
Open an empty viewer
Open OZR/OZD in the empty viewer
Export OZR/OZD to OZD/PDF and send OZD/PDF to the server
Receive OZD/PDF from the client and save it as OZD/PDF
The OZ Server Binding license is required in the OZ Server license file as below.
USE-SERVERBIND="TRUE"
Set the viewer parameter viewer.emptyframe to true.
Create a folder named EXPORT under the webapps folder.
Get OZD from the viewer.
Save it to the EXPORT and repository_files.
Client
ScriptEx("save_memorystream") converts the form as a memory stream in the specified format (OZD or PDF) and raises the event OZExportMemoryStreamCallBack.
ExportMemoryStreamCallBack_OZViewer(outputdata) triggered by OZExportMemoryStreamCallBack event receives the memory stream encoded in base64 with outputdata argument.
Sends the memory stream to the server application in the function OZExportMemoryStreamCallBack_OZViewer
Server
Receives the memory stream, decodes it, and saves it as a file in the target format.
Sends the target file path to the client.
Client
streamCallback receives the target file path.
export.path=C:\TEMP
path for the save option
export.filename=temp
file name for the save option
export.mode=silent
no Save diaog box
export.confirmsave=false
no Save as window
pdf.savecomment=true
export to pdf with comments
ozd.allowreplaceformparam=true
allow created OZD to receive parameter values
save_memorystream
save as a memory stream
save
save as a file on the client