Index

CDTDocV8

SaveToStream

The SaveToStream function saves the Power Engine document specified by the document instance power_doc to a file. The file will be in the native uncompressed PowerDoc format.

Parameters

ParameterDescription

sd

A valid pointer to the DT_STREAM_DESC structure which supplies the location of the output file to be created. The file will be in the native uncompressed PowerDoc format. Native PowerDoc files usually are usually recognized by their .pdc extension. If the specified output file already exists, it will be overwritten.

Return Value

If the function was successful, the return value is 1. Otherwise, the function returns a negative number.

Comments

PowerDoc files created by this function can be read using the AppendFromStream function.

Note 1

See How To Use D-Type Streams And Stream Macros.



 

Index