A newer version of this page is available. Switch to the current version.

PdfDocumentOptions.DefaultProducer Property

Specifies the default value of the PdfDocument.Producer property for all generated PDF files.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v18.2.Core.dll

Declaration

public static string DefaultProducer { get; set; }
Public Shared Property DefaultProducer As String

Property Value

Type Description
String

A String which stores the Producer name.

Property Paths

You can access this nested property as listed below:

Show 11 property paths
Library Object Type Path to DefaultProducer
Cross-Platform Class Library RemotePrintingSystem
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
ExportOptions
.Pdf.DocumentOptions.DefaultProducer
PdfExportOptions
.DocumentOptions.DefaultProducer
PrintingSystemBase
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
WinForms Controls PrintingSystem
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
XtraSchedulerReport
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
WPF Controls ExportOptionsContainer
.Pdf.DocumentOptions.DefaultProducer
PrintingSystem
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
PrintingSystem
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
Reporting XtraReport
.ExportOptions.Pdf.DocumentOptions.DefaultProducer
DocumentOperationRequest
.ExportOptions.Pdf.DocumentOptions.DefaultProducer

Remarks

When the PdfDocumentOptions.Producer property is not specified, the DefaultProducer property value is used to specify the Producer of a PDF file.

Examples

This example illustrates how to use the PdfDocumentOptions.Producer and PdfDocumentOptions.DefaultProducer properties.

using DevExpress.XtraPrinting;
// ...

private static void ExportProducerLocal(XtraReport1 report) {
    report.ExportOptions.Pdf.DocumentOptions.Producer = "Some Producer";
    report.ExportToPdf("testProducer.pdf");

    System.Diagnostics.Process.Start("testProducer.pdf");
}

private static void ExportProducerGlobal(XtraReport1 report) {
    PdfDocumentOptions.DefaultProducer = "Some Default Producer";
    report.ExportToPdf("testGlobalProducer.pdf");

    System.Diagnostics.Process.Start("testGlobalProducer.pdf");
}
See Also