Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to print crystal report directly to printer without previewing in c# Pin
remiki23-Aug-19 0:33
remiki23-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
remiki23-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
remiki23-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
remiki23-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 
Sigh | :sigh:
This has "long day" written all over it ...

I'm sure that you do. But which line of code in the fragment you showed us actually does the print preview?
Now, I'm guessing - and guessing is all I can do here, since I can't see your screen, access your HDD, or read your mind: we only get exactly what you type to work with - that it's one of these:
C#
c2.SetDataSource(dt);
crystalReportViewer1.ReportSource = c2;
c2.SetDatabaseLogon("sa", "789456");
Or possibly something that happens after the call to the report method.
But ... I don't have the code for your FactCons class. I don't have the code that calls report. So I need you to actually do the work and find out - because without it, there isn't anything I can do, other than bang my head on the desk because it "feels so good when I stop" ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

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 
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 

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.