예제 #1
0
        private void printGETFletehyrje_Artikull(int fletehyrjeID)
        {
            FleteHyrjePrint flPrint = new FleteHyrjePrint();
            DataTable       tb      = conn.GETFletehyrje_Artikull(fletehyrjeID);
            DataSet         ds      = new DataSet();

            flPrint.SetDataSource(tb);

            CrRep cs = new CrRep();

            cs.crystalReportViewer1.ReportSource = flPrint;


            cs.Show();
        }
예제 #2
0
        private void raportDitorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            XhiroDitore flPrint = new XhiroDitore();

            flPrint.SetParameterValue("@idPerdorues", perdoruesID);
            flPrint.SetParameterValue("@_data", DateTime.Now.ToString("yyyy-M-d"));

            var dialog = new PrintDialog();

            CrRep cs = new CrRep();

            cs.crystalReportViewer1.ReportSource = flPrint;

            flPrint.PrintOptions.PrinterName = dialog.PrinterSettings.PrinterName;
            flPrint.PrintToPrinter(1, false, 0, 0);
            cs.Show();
        }
예제 #3
0
        private void printFleteHyrje(int fletehyrjeID)
        {
            FleteHyrjePrint flPrint = new FleteHyrjePrint();
            DataTable       tb      = conn.GETFletehyrje(fletehyrjeID);

            flPrint.SetParameterValue("FletehyrjeID", tb.Rows[0][0].ToString());

            flPrint.SetParameterValue("Furnitori", tb.Rows[0][2].ToString());

            flPrint.SetParameterValue("Magazina", tb.Rows[0][3].ToString());

            flPrint.SetParameterValue("Menaxheri", tb.Rows[0][4].ToString() + " " + tb.Rows[0][4].ToString());

            flPrint.SetParameterValue("Data", tb.Rows[0][1].ToString());
            flPrint.SetParameterValue("@id", fletehyrjeID);

            CrRep cs = new CrRep();

            cs.crystalReportViewer1.ReportSource = flPrint;


            cs.Show();
        }
예제 #4
0
        private void printoFaturen(int fletedaljeId)
        {
            FleteDaljePrint flPrint = new FleteDaljePrint();
            DataTable       tb      = conn.GETFleteDalje(fletedaljeId);

            flPrint.SetParameterValue("Nr", tb.Rows[0][0].ToString());

            flPrint.SetParameterValue("shitesi", tb.Rows[0][2].ToString() + " " + tb.Rows[0][3].ToString());

            flPrint.SetParameterValue("Sporteli", tb.Rows[0][1].ToString());

            flPrint.SetParameterValue("Data", tb.Rows[0][4].ToString());
            flPrint.SetParameterValue("@id", fletedaljeId);

            var dialog = new PrintDialog();

            CrRep cs = new CrRep();

            cs.crystalReportViewer1.ReportSource = flPrint;

            flPrint.PrintOptions.PrinterName = dialog.PrinterSettings.PrinterName;
            flPrint.PrintToPrinter(1, false, 0, 0);
            cs.Show();
        }