Click here to Skip to main content
15,441,280 members
Home / Discussions / C#
   

C#

 
GeneralRe: Showing webcam preview in picturebox Problem.... Pin
S K Y28-Jun-09 20:27
MemberS K Y28-Jun-09 20:27 
GeneralRe: Showing webcam preview in picturebox Problem.... Pin
Christian Graus28-Jun-09 20:30
mveChristian Graus28-Jun-09 20:30 
GeneralRe: Showing webcam preview in picturebox Problem.... Pin
S K Y28-Jun-09 20:50
MemberS K Y28-Jun-09 20:50 
GeneralRe: Showing webcam preview in picturebox Problem.... Pin
Christian Graus28-Jun-09 21:03
mveChristian Graus28-Jun-09 21:03 
GeneralRe: Showing webcam preview in picturebox Problem.... Pin
S K Y28-Jun-09 21:39
MemberS K Y28-Jun-09 21:39 
GeneralRe: Showing webcam preview in picturebox Problem.... Pin
Christian Graus28-Jun-09 21:48
mveChristian Graus28-Jun-09 21:48 
QuestionDisplaying a image in crystal report Pin
vijaylumar28-Jun-09 19:34
Membervijaylumar28-Jun-09 19:34 
AnswerRe: Displaying a image in crystal report Pin
KIDYA28-Jun-09 21:49
MemberKIDYA28-Jun-09 21:49 
May this help u.........


{
                           DataTable dt = new DataTable("tblImgData");

                           //Adds a column called picture
                           dt.Columns.Add("Picture", typeof(Byte[]));

                           //Add a row to the table
                           dt.Rows.Add(GetImageData(""));

                           //Then add it to the DataSet
                            Ds = new DataSet("NewDataSetName");
                           Ds.Tables.Add(dt);



                       objRpt.SetDataSource(Ds);
                      crystalReportViewer1.ReportSource =objRpt;

               }

                       byte[] GetImageData(string fileName )
                       {
                           //Method to load an image from disk and return it as a bytestream
                           System.IO.FileStream fs = new System.IO.FileStream(fileName,System.IO.FileMode.Open, System.IO.FileAccess.Read);
                           System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
                           return (br.ReadBytes(Convert.ToInt32(br.BaseStream.Length)));
                       }

GeneralRe: Displaying a image in crystal report Pin
vijaylumar28-Jun-09 22:04
Membervijaylumar28-Jun-09 22:04 
QuestionHow to sort datatable values???? Pin
swetha_insoft28-Jun-09 19:31
Memberswetha_insoft28-Jun-09 19:31 
AnswerRe: How to sort datatable values???? Pin
padmanabhan N28-Jun-09 19:47
Memberpadmanabhan N28-Jun-09 19:47 
GeneralRe: How to sort datatable values???? Pin
swetha_insoft28-Jun-09 20:06
Memberswetha_insoft28-Jun-09 20:06 
GeneralRe: How to sort datatable values???? Pin
dan!sh 28-Jun-09 20:15
professional dan!sh 28-Jun-09 20:15 
GeneralRe: How to sort datatable values???? Pin
swetha_insoft28-Jun-09 20:21
Memberswetha_insoft28-Jun-09 20:21 
GeneralRe: How to sort datatable values???? Pin
padmanabhan N28-Jun-09 20:38
Memberpadmanabhan N28-Jun-09 20:38 
AnswerRe: How to sort datatable values???? Pin
N a v a n e e t h28-Jun-09 19:52
MemberN a v a n e e t h28-Jun-09 19:52 
GeneralRe: How to sort datatable values???? Pin
swetha_insoft28-Jun-09 20:13
Memberswetha_insoft28-Jun-09 20:13 
GeneralRe: How to sort datatable values???? [modified] Pin
N a v a n e e t h28-Jun-09 20:21
MemberN a v a n e e t h28-Jun-09 20:21 
GeneralRe: How to sort datatable values???? Pin
swetha_insoft28-Jun-09 20:45
Memberswetha_insoft28-Jun-09 20:45 
Generalproblem DLL logic Pin
ishika_kukki28-Jun-09 19:29
Memberishika_kukki28-Jun-09 19:29 
GeneralRe: problem DLL logic Pin
dan!sh 28-Jun-09 20:02
professional dan!sh 28-Jun-09 20:02 
GeneralRe: problem DLL logic Pin
ishika_kukki28-Jun-09 20:29
Memberishika_kukki28-Jun-09 20:29 
AnswerRe: problem DLL logic Pin
OriginalGriff28-Jun-09 21:17
mveOriginalGriff28-Jun-09 21:17 
GeneralRe: problem DLL logic Pin
ishika_kukki28-Jun-09 23:05
Memberishika_kukki28-Jun-09 23:05 
GeneralRe: problem DLL logic Pin
dan!sh 29-Jun-09 2:43
professional dan!sh 29-Jun-09 2:43 

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.