Eplan Platform API
Eplan.EplApi.HEServices Namespace / Print Class / Pages Method / Pages(String,PrinterSettings,String,StringCollection,Int32,Boolean,Boolean,String,Boolean,String) Method
Printer name.
System.Drawing.Printing.PrinterSettings object to specify further printer settings.
Full link file name of the project to be printed.
Container of pages to be printed. Pages are specified by the full page name.
Number of copies to print.
Collate output.
Reverse printing.
Full file name of the \output file in case of printing to file.
Print changed pages
Language of printed pages

Pages(String,PrinterSettings,String,StringCollection,Int32,Boolean,Boolean,String,Boolean,String) Method
Prints pages on the specified printer.
Syntax

Parameters

strPrinterName
Printer name.
pSettings
System.Drawing.Printing.PrinterSettings object to specify further printer settings.
strFullLinkFileName
Full link file name of the project to be printed.
colPages
Container of pages to be printed. Pages are specified by the full page name.
dNumber
Number of copies to print.
bPrintCollate
Collate output.
bPrintReverse
Reverse printing.
strTargetFile
Full file name of the \output file in case of printing to file.
bPrintChangedPages
Print changed pages
strLanguage
Language of printed pages
Exceptions
ExceptionDescription
Thrown in case of invalid \parameters, e.g. the project does not exist.
Thrown if a parameter is set to null.
The \internal interface necessary for printing could not be created.
An error occurred during the print process.
The given printer could not be found.
The print process was canceled by the user.
Some undefined error occurred, e.g., HDC could not be created.
Remarks
The specified project may be open in EPLAN or not. If the project is not opened from the beginning, it will be opened for the printing process and will be closed subsequently. All pages in colPages need to belong to the specified project. If bPrintChangedPages is used with non-empty strTargetFile and nothing was changed empty file will be created anyway. Warning! Please check settings under "Workstation->Graphical editing->Print" because they overwrite parameters of the method.
See Also