private void btOnizleEpostaGonder_Click(object sender, EventArgs e) { gridView5.ViewCaption = "Gün Sonu " + ilktarih.Text + " - " + sontarih.Text; gridView5.OptionsView.ShowViewCaption = true; PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gcGunSonuOzet; printableLink.Landscape = true; printableLink.PaperKind = System.Drawing.Printing.PaperKind.A5Rotated; printableLink.CreateDocument(Printing); string dosyaadi = DB.exeDizini + "\\gunsonu.pdf"; printableLink.ExportToPdf(dosyaadi); //ShowRibbonPreviewDialog(printableLink); //System.Diagnostics.Process process = new System.Diagnostics.Process(); //process.StartInfo.FileName = filePath; //process.Start(); DB.epostagonder(lUEKullanicilar.EditValue.ToString(), "Gün Sonu Raporu", dosyaadi, "Gün Sonu Raporu"); formislemleri.Mesajform("E-Posta Gönderildi.", "S", 200); printableLink.Dispose(); gridView5.OptionsView.ShowViewCaption = false; }
private void button1_Click(object sender, EventArgs e) { PrintingSystem ps = new PrintingSystem(); PrintableComponentLink link = new PrintableComponentLink(ps); link.Component = pivotGridControl1; PageSettings pageSettings = pivotGridControl1.OptionsPrint.PageSettings.ToPageSettings(); link.PaperKind = pageSettings.PaperSize.Kind; if (pageSettings.PaperSize.Width != 0 && pageSettings.PaperSize.Height != 0) { link.CustomPaperSize = new Size(pageSettings.PaperSize.Width, pageSettings.PaperSize.Height); } link.PaperName = pageSettings.PaperSize.PaperName; link.Landscape = pageSettings.Landscape; link.Margins = pageSettings.Margins; link.ShowPreviewDialog(this); PivotGridPageSettings pivotSettings = pivotGridControl1.OptionsPrint.PageSettings; pivotSettings.PaperKind = link.PaperKind; if (pivotSettings.PaperKind == PaperKind.Custom) { pivotSettings.PaperWidth = link.CustomPaperSize.Width; pivotSettings.PaperHeight = link.CustomPaperSize.Height; } pivotSettings.Landscape = link.Landscape; pivotSettings.Margins = link.Margins; link.Dispose(); ps.Dispose(); }
void yazdir() { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gridControl2; printableLink.Landscape = true; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }
private void simpleButton3_Click(object sender, EventArgs e) { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gridControl2; printableLink.Landscape = true; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }
private void btnGiderlerYazdir_Click(object sender, EventArgs e) { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gcGiderler; printableLink.Landscape = true; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }
void yazdir() { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); if (xtraTabControl1.SelectedTabPageIndex == 0) { printableLink.Component = gridControl1; } printableLink.Landscape = true; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }
void yazdir() { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gcGunSonuOzet; printableLink.Landscape = true; printableLink.PaperKind = System.Drawing.Printing.PaperKind.A4; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }
void yazdir() { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gridControl1; printableLink.Landscape = true; printableLink.PaperKind = System.Drawing.Printing.PaperKind.A4; //printableLink.PrintingSystem.Document.AutoFitToPagesWidth = 1; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }
public void GridYazdir(GridControl gridControl1, string kagit_turu) { PrintableComponentLink printableLink = new PrintableComponentLink(new PrintingSystem()); printableLink.Component = gridControl1; printableLink.Landscape = true; if (kagit_turu == "A4") { printableLink.PaperKind = System.Drawing.Printing.PaperKind.A4; } // else //printableLink.PaperKind = System.Drawing.Printing.PaperKind.A4Extra; printableLink.CreateDocument(Printing); ShowRibbonPreviewDialog(printableLink); printableLink.Dispose(); }