4D View Proドキュメントが埋め込まれた4Dフォームを印刷したり、4D View Proドキュメントにドキュメントの一部を表示する必要があるでしょうか?このような場合 VP Convert to pictureコマンドを使用すると、4D View Pro ドキュメントの一部から SVG を作成し、それを画像のように扱うことができます。このブログ記事でその方法を紹介します。
この VP Convert to pictureコマンドは、ドキュメントを画像に変換する簡単な方法を提供します。
PictViewPro:=VP Convert to picture ($doc)
これにより、古典的な 4D コマンドを使用してドキュメントを印刷することができます。例えば、SET PRINTING JOB やSET PRINT OPTION を使ってドキュメントを印刷する必要がある場合、入力フォームオブジェクトに画像を表示し、印刷することができます。
PRINT SETTINGS
If // Load a form with an input form object bound to the PictViewPro variable // Print input form object // printing other parts of your report
( =1) (Orientation option;1) := ( ) ("PrintForm_Portrait") ( ; ; ) := ( ;0 ; ; ) xml-ph-0033@OK
SET PRINT OPTION
OPEN PRINTING JOB
// more print commands here, such as Print Form or Print Object
// Document conversion
PictViewProVP Convert to picture $doc
FORM LOAD
OBJECT GET BEST SIZEPictViewPro$bestwidth$bestheight
$endPrint objectPictViewPro$bestwidth$bestheight
FORM UNLOAD
CLOSE PRINTING JOB
End if
その他の例は、以下のHDIでご覧ください。