'宣言
Public Property PrintingSettings As PrintingSettings
public PrintingSettings PrintingSettings {get; set;}
'宣言
Public Property PrintingSettings As PrintingSettings
public PrintingSettings PrintingSettings {get; set;}
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim settings As New GrapeCity.Viewer.Common.PrintingSettings settings = CType((((GrapeCity.Viewer.Common.PrintingSettings.ShowPrintDialog Or GrapeCity.Viewer.Common.PrintingSettings.ShowPrintProgressDialog) Or GrapeCity.Viewer.Common.PrintingSettings.UsePrintingThread) Or GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog), GrapeCity.Viewer.Common.PrintingSettings) Viewer1.Print(settings) End Sub
private void Form1_Load(System.Object sender, System.EventArgs e) { GrapeCity.Viewer.Common.PrintingSettings settings = new GrapeCity.Viewer.Common.PrintingSettings(); settings = (GrapeCity.Viewer.Common.PrintingSettings)(((GrapeCity.Viewer.Common.PrintingSettings.ShowPrintDialog | GrapeCity.Viewer.Common.PrintingSettings.ShowPrintProgressDialog) | GrapeCity.Viewer.Common.PrintingSettings.UsePrintingThread) | GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog); Viewer1.Print(settings); }