Click here to Skip to main content
14,325,064 members
   

C#

 
GeneralRe: C# WPF Seeds code for Login on AD Azure Pin
jan Meeling27-Aug-19 0:05
memberjan Meeling27-Aug-19 0:05 
GeneralRe: C# WPF Seeds code for Login on AD Azure Pin
Richard MacCutchan27-Aug-19 1:19
protectorRichard MacCutchan27-Aug-19 1:19 
QuestionIntercepting a Logoff Pin
ormonds23-Aug-19 12:07
memberormonds23-Aug-19 12:07 
AnswerRe: Intercepting a Logoff Pin
OriginalGriff23-Aug-19 19:42
protectorOriginalGriff23-Aug-19 19:42 
GeneralRe: Intercepting a Logoff Pin
ormonds27-Aug-19 2:50
memberormonds27-Aug-19 2:50 
GeneralRe: Intercepting a Logoff Pin
Dave Kreskowiak27-Aug-19 5:09
mveDave Kreskowiak27-Aug-19 5:09 
GeneralRe: Intercepting a Logoff Pin
ormonds27-Aug-19 13:10
memberormonds27-Aug-19 13:10 
QuestionHow to print crystal report directly to printer without previewing in c# Pin
remiki22-Aug-19 23:01
memberremiki22-Aug-19 23:01 
here is my code, i want just the client may print when click in printing_button the the printer print directly, how can i modify my code?
void report()
       {
           cnx = new SqlConnection(db.RXcon);
           try
           {
               cnx.Open();
 string cg=" SELECT * from my_table 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();//crystalreportviewer
               c2.SetDataSource(dt);
               crystalReportViewer1.ReportSource = c2;
               c2.SetDatabaseLogon("sa", "789456");
           }
           catch (Exception ex)
           {
               MessageBox.Show(ex.Message);
           }
           cnx.Close();
       }

with these codes, you have first to preview, but i want to jump previewing please
AnswerRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff22-Aug-19 23:25
protectorOriginalGriff22-Aug-19 23:25 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 0:33
memberremiki23-Aug-19 0:33 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 0:42
protectorOriginalGriff23-Aug-19 0:42 
AnswerRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 1:02
memberremiki23-Aug-19 1:02 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 1:10
protectorOriginalGriff23-Aug-19 1:10 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 1:24
memberremiki23-Aug-19 1:24 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 1:34
protectorOriginalGriff23-Aug-19 1:34 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 1:40
memberremiki23-Aug-19 1:40 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 1:56
protectorOriginalGriff23-Aug-19 1:56 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 2:00
memberremiki23-Aug-19 2:00 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 2:21
protectorOriginalGriff23-Aug-19 2:21 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 2:29
memberremiki23-Aug-19 2:29 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 2:40
protectorOriginalGriff23-Aug-19 2:40 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
Richard MacCutchan23-Aug-19 3:27
protectorRichard MacCutchan23-Aug-19 3:27 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
OriginalGriff23-Aug-19 3:33
protectorOriginalGriff23-Aug-19 3:33 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 11:44
memberremiki23-Aug-19 11:44 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 1:53
memberremiki23-Aug-19 1:53 

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.