FileAdapter.ResetPrintAttr Method
Definition
Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll
Resets the print attributes for the file that the FileAdapter is working with.
void ResetPrintAttr()
Remarks
ResetPrintAttr completes the printer job associated with the open print file and begins a new printer job with new printer job properties as specified by the docName and _attr_parameters. The ForceEOD method provides similar printer job functionality for print files but does not change the job name or device attributes.
The attr parameter refers to an instance of ASNA.DataGate.Providers.PrintDevAttr object specified when the file is opened. For example, the program’s print operation can print several documents using one setting for margins (set via the PrintFileOpenAttr.DevAttr property), then change the margins before printing the next set of documents (via the ResetPrintAttr method).
The docName parameter allows you to associate a new name with the new printer job. This name can be used by the operating system to identify a job in a printer queue. If docName is null , the next printer job will have the same name as the current printer job.