private void Imprime_Pagina(object sender, Report.SDPrintPageEventArgs arg) { SDDestination dest; dest = this.Relatorio.CreateDestination(); dest.DestinationType = PdfDestinationType.XYZ; this.Relatorio.OpenAction(dest); }
private void sdPage1_PrintPage(object sender, Report.SDPrintPageEventArgs arg) { SDDestination Dest; Dest = sdReport1.CreateDestination(); Dest.DestinationType = (PdfDestinationType)comboBox1.SelectedIndex; Dest.Left = (int)numLeft.Value; Dest.Top = (int)numTop.Value; Dest.Right = (int)numRight.Value; Dest.Bottom = (int)numBottom.Value; Dest.Zoom = (int)numZoom.Value / 100; sdReport1.OpenAction(Dest); }
private void sdPage1_PrintPage(object sender, Report.SDPrintPageEventArgs arg) { Report.SDDestination Dest; if (sdReport1.PageNumber == 1) { Dest = sdReport1.CreateDestination(); Dest.DestinationType = Report.PdfDestinationType.XYZ; Dest.Zoom = 1; sdReport1.OpenAction(Dest); } FOutline = sdReport1.OutlineRoot.AddChild(); FOutline.Dest = sdReport1.CreateDestination(); FOutline.Dest.Top = 0; FOutline.Title = "Page " + sdReport1.PageNumber.ToString(); }