fpSpread1.Sheets[0].AddSpanCell(1, 1, 2, 2); fpSpread1.Sheets[0].Cells[1, 1].Text = "Print"; FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo(); printset.BestFitWithSpan = true; printset.Preview = true; fpSpread1.Sheets[0].PrintInfo = printset; fpSpread1.PrintSheet(0);
fpSpread1.Sheets(0).AddSpanCell(1, 1, 2, 2) fpSpread1.Sheets(0).Cells(1, 1).Text = "Print" Dim printset As New FarPoint.Win.Spread.PrintInfo() printset.BestFitWithSpan = True printset.Preview = True fpSpread1.Sheets(0).PrintInfo = printset fpSpread1.PrintSheet(0)