Spread Silverlight Documentation
DisplayDocTitle Property
Example 


Gets or sets a value that indicates whether the window's title bar should display the title specified for the PDF file.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property DisplayDocTitle As System.Boolean
'Usage
 
Dim instance As PdfExportSettings
Dim value As System.Boolean
 
instance.DisplayDocTitle = value
 
value = instance.DisplayDocTitle
[System.ComponentModel.DefaultValue()]
public System.bool DisplayDocTitle {get; set;}

Property Value

true if the window's title bar displays the title specified for the PDF file; otherwise, false. The default value is false, which means the window's title bar displays the PDF file name.
Remarks
This property sets a flag that specifies whether the window’s title bar should display the document title taken from the Title entry of the document information dictionary. Set the title by setting the Title property. If the DisplayDocTitle property is false, the title bar displays the name of the PDF file instead.
Example
This example sets the DisplayDocTitle property.
string fileName;
fileName = "c:\\zipfile\\test.pdf";
System.IO.Stream stream;
stream = System.IO.File.Create(fileName);

GrapeCity.Windows.SpreadSheet.Data.PrintInfo printtest;
printtest = gcSpreadSheet1.Sheets[0].PrintInfo;
printtest.FooterCenter = "This is Page &P";
printtest.HeaderCenter = "Test &UPrint";
printtest.BestFitColumns = true;
printtest.UseMax = true;

GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings test;
test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings();
test.Title = "Print PDF";
test.Author = "GrapeCity, Inc.";
test.DisplayDocTitle = true;
test.FitWindow = true;
gcSpreadSheet1.SavePDF(stream, test, 0);
Dim fileName As String
fileName = "c:\zipfile\test.pdf"
Dim stream As System.IO.Stream
stream = System.IO.File.Create(fileName)

Dim printtest As GrapeCity.Windows.SpreadSheet.Data.PrintInfo
printtest = GcSpreadSheet1.Sheets(0).PrintInfo
printtest.FooterCenter = "This is Page &P"
printtest.HeaderCenter = "Test &UPrint"
printtest.BestFitColumns = True
printtest.UseMax = True

Dim test As GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings
test = New GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings()
test.Title = "Print PDF"
test.Author = "GrapeCity, Inc."
test.DisplayDocTitle = True
test.FitWindow = True
GcSpreadSheet1.SavePDF(stream, test, 0)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

PdfExportSettings Class
PdfExportSettings Members

 

 


Copyright © GrapeCity, inc. All rights reserved.