Click here to Skip to main content
16,007,472 members
Home / Discussions / C#
   

C#

 
AnswerRe: How long this project"logic gate simulator" take to complete? Pin
0x3c011-Mar-09 22:11
0x3c011-Mar-09 22:11 
GeneralRe: How long this project"logic gate simulator" take to complete? Pin
Pete O'Hanlon11-Mar-09 22:48
mvePete O'Hanlon11-Mar-09 22:48 
AnswerRe: How long this project"logic gate simulator" take to complete? Pin
Jonathan Davies12-Mar-09 0:38
Jonathan Davies12-Mar-09 0:38 
AnswerRe: How long this project"logic gate simulator" take to complete? Pin
Zhat12-Mar-09 3:00
Zhat12-Mar-09 3:00 
QuestionProblem with handling events in visual studio addin Pin
lightningzeus11-Mar-09 18:51
lightningzeus11-Mar-09 18:51 
QuestionCOMException Pin
Reetu Singh11-Mar-09 17:57
Reetu Singh11-Mar-09 17:57 
AnswerRe: COMException Pin
dan!sh 11-Mar-09 19:07
professional dan!sh 11-Mar-09 19:07 
QuestionPrinting reports without the ReportViewer Pin
Jacob Dixon11-Mar-09 17:51
Jacob Dixon11-Mar-09 17:51 
I was wondering if you can print a report without the report viewer?

Right now, a user can right click the ListView and select View Ticket and it will bring up a Windows Form with a report viewer in it (linkd to TicketView.rdlc) and it will view the printable version of the ticket.

Now on the same context menu I put a Print Ticket button. My intensions was the user can view the ticket in printable format then print it, or the user could just click the Print Ticket button and it would print it exactly like you would view it in the report viewer.

Right now my ViewTicket.cs (Windows Form) has the dataset, binding source, and table adapter. When this form is opened, the ID (SQL) is passed to the windows form. Then we fill the table adapter using the ID. Now my other forms didnt do it this way since they needed more input before viewing the report. It seemed when I tried this with the forms Load event it wouldn't work.

Here is how I passed the parameters during the Loading of the form (this DIDNT work)

ReportParameter[] parm = new ReportParameter[1];
parm[0] = new ReportParameter("ID", ID.ToString());
reportViewer1.LocalReport.SetParameters(parameters);
reportViewer1.RefreshReport();


Now this exact code would work if I put a button on the form and ran this code during the button click event. But its like the report can't refresh because the form is loading maybe? Not sure..

Anyways, so how exactly could I print this report without going to the report viewer? I understand I would need to pass the ID to the report still, but how do I skip the viewing the report with the reportviewer and printing it from there? How can I just go straight to printing the report with one click of a button?
Questionneed help Pin
YiXiang_8911-Mar-09 16:41
YiXiang_8911-Mar-09 16:41 
AnswerRe: need help Pin
Christian Graus11-Mar-09 17:04
protectorChristian Graus11-Mar-09 17:04 
Questioncan we Give Size For Message Boxes??? Pin
S K Y11-Mar-09 16:30
S K Y11-Mar-09 16:30 
AnswerRe: can we Give Size For Message Boxes??? Pin
Christian Graus11-Mar-09 16:40
protectorChristian Graus11-Mar-09 16:40 
QuestionHow to Maximize Form.....??? Pin
S K Y11-Mar-09 15:14
S K Y11-Mar-09 15:14 
AnswerRe: How to Maximize Form.....??? Pin
PIEBALDconsult11-Mar-09 15:22
mvePIEBALDconsult11-Mar-09 15:22 
GeneralRe: How to Maximize Form.....??? Pin
S K Y11-Mar-09 15:27
S K Y11-Mar-09 15:27 
GeneralRe: How to Maximize Form.....??? Pin
DaveyM6911-Mar-09 15:31
professionalDaveyM6911-Mar-09 15:31 
GeneralRe: How to Maximize Form.....??? Pin
S K Y11-Mar-09 16:52
S K Y11-Mar-09 16:52 
QuestionGetting this Error message....any one know y??? Pin
S K Y11-Mar-09 14:47
S K Y11-Mar-09 14:47 
AnswerRe: Getting this Error message....any one know y??? Pin
DaveyM6911-Mar-09 14:56
professionalDaveyM6911-Mar-09 14:56 
GeneralRe: Getting this Error message....any one know y??? Pin
S K Y11-Mar-09 15:26
S K Y11-Mar-09 15:26 
GeneralRe: Getting this Error message....any one know y??? Pin
DaveyM6911-Mar-09 15:34
professionalDaveyM6911-Mar-09 15:34 
GeneralRe: Getting this Error message....any one know y??? Pin
Christian Graus11-Mar-09 15:58
protectorChristian Graus11-Mar-09 15:58 
GeneralRe: Getting this Error message....any one know y??? Pin
S K Y11-Mar-09 18:18
S K Y11-Mar-09 18:18 
QuestionHow to use OleDbConnection or SqlCommand to read Schema and database records [modified] Pin
granthamlee11-Mar-09 14:30
granthamlee11-Mar-09 14:30 
QuestionSyste.OutOfMemoryException Pin
Member 461797111-Mar-09 14:23
Member 461797111-Mar-09 14:23 

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.