Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 6: for importing DataStore to PDFDocument – PB Docs 2022 – PowerBuilder Library

Syntax 6: for importing DataStore to PDFDocument – PB Docs 2022

Syntax 6: for importing DataStore to PDFDocument

Description

Imports data from a DataStore object to a PDF document. All pages
are inserted before the specified position of the PDF document, and if
the index of the specified position is out of range, the pages are added
to the end. The PDF output is the same as you save data from a
DataWindow object to a PDF document using PDFlib or GhostScript
(depending on which one is set as the default method).

Applies to

PDFDocument object in Objects and Controls

Syntax

Argument

Description

objectname

The name of the PDFDocument object in which you want to
import data from a DataStore object to a PDF document

ds

The DataStore object whose data is imported to a PDF
document

targetIndex

The target index of a PDF document before which you want
to import all pages from a DataStore object

Return value

Long.

Returns 1 if the function succeeds and a negative value if an
error occurs. For more errors, see the Error Codes.

Examples

This statement imports all pages from the DataStore object lds_1
before the first page of a PDF document and saves the document as
datastore1.pdf:

See also

AddPage

Clone

GetPage

GetPageCount

GetTableOfContents

ImportPDF

ImportRichTextEdit

IndexOf

InsertPage

RemovePage

Save

SearchObject

SetTableOfContents


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x