Click here to Skip to main content
14,879,683 members
Home / Discussions / C#
   

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
mveRichard 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
mveOriginalGriff23-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
mveOriginalGriff22-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
mveOriginalGriff23-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
mveOriginalGriff23-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
mveOriginalGriff23-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
mveOriginalGriff23-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
mveOriginalGriff23-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
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
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.