Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 2:00
remiki23-Aug-19 2:00 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 2:21
mveOriginalGriff23-Aug-19 2:21 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 2:29
remiki23-Aug-19 2:29 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 2:40
mveOriginalGriff23-Aug-19 2:40 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
Richard MacCutchan23-Aug-19 3:27
mveRichard MacCutchan23-Aug-19 3:27 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 3:33
mveOriginalGriff23-Aug-19 3:33 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 11:44
remiki23-Aug-19 11:44 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 1:53
remiki23-Aug-19 1:53 
C#
private void butt_prnt_Click(object sender, EventArgs e)
      {
          report();//your question
      }
      void report()
      {
          cnx = new SqlConnection(db.RXcon);
          try
          {
              cnx.Open();
      string cg=" SELECT * from Consultation where NumFact=" + @Convert.ToInt32(textBox4.Text);
              commd2 = new SqlCommand(cg);
              commd2.Connection = cnx;
              DataSet dts = new DataSet();
              DataTable dt = new DataTable();
              dtr = commd2.ExecuteReader();
              dt.Load(dtr);
              FactCons c2 = new FactCons();
              c2.SetDataSource(dt);
              crystalReportViewer1.ReportSource = c2;
              c2.SetDatabaseLogon("sa", "789654");
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
          cnx.Close();
      }

GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
RobF_8323-Aug-19 11:33
RobF_8323-Aug-19 11:33 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 11:41
remiki23-Aug-19 11:41 
AnswerRe: How to print crystal report directly to printer without previewing in c# Pin
remiki25-Aug-19 22:42
remiki25-Aug-19 22:42 
Questionhow can i make simple calendar using dropdownlist for year and months using c# window form let`s start learning c# Pin
Member 1448421922-Aug-19 16:10
Member 1448421922-Aug-19 16:10 
AnswerRe: how can i make simple calendar using dropdownlist for year and months using c# window form let`s start learning c# Pin
OriginalGriff22-Aug-19 19:47
mveOriginalGriff22-Aug-19 19:47 
AnswerRe: how can i make simple calendar using dropdownlist for year and months using c# window form let`s start learning c# Pin
Richard MacCutchan22-Aug-19 21:43
mveRichard MacCutchan22-Aug-19 21:43 
Generalc# Project Pin
arun exe21-Aug-19 15:36
professionalarun exe21-Aug-19 15:36 
AnswerRe: c# Project Pin
OriginalGriff21-Aug-19 19:48
mveOriginalGriff21-Aug-19 19:48 
GeneralRe: c# Project Pin
arun exe21-Aug-19 20:24
professionalarun exe21-Aug-19 20:24 
QuestionExcel's MOD in C#? Pin
Jassim Rahma18-Aug-19 8:51
Jassim Rahma18-Aug-19 8:51 
AnswerRe: Excel's MOD in C#? Pin
Pete O'Hanlon18-Aug-19 12:20
mvePete O'Hanlon18-Aug-19 12:20 
GeneralRe: Excel's MOD in C#? Pin
Jassim Rahma18-Aug-19 21:38
Jassim Rahma18-Aug-19 21:38 
GeneralRe: Excel's MOD in C#? Pin
Peter_in_278018-Aug-19 21:58
professionalPeter_in_278018-Aug-19 21:58 
GeneralRe: Excel's MOD in C#? Pin
Jassim Rahma18-Aug-19 22:18
Jassim Rahma18-Aug-19 22:18 
GeneralRe: Excel's MOD in C#? Pin
Peter_in_278018-Aug-19 22:25
professionalPeter_in_278018-Aug-19 22:25 
AnswerRe: Excel's MOD in C#? Pin
OriginalGriff18-Aug-19 22:08
mveOriginalGriff18-Aug-19 22:08 
GeneralRe: Excel's MOD in C#? Pin
Jassim Rahma18-Aug-19 22:22
Jassim Rahma18-Aug-19 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.