Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: Playing videos in the form using c# Pin
Rajdeep.NET is BACK8-Apr-09 0:48
Rajdeep.NET is BACK8-Apr-09 0:48 
GeneralRe: Playing videos in the form using c# Pin
King Julien8-Apr-09 0:58
King Julien8-Apr-09 0:58 
GeneralRe: Playing videos in the form using c# Pin
DaveyM698-Apr-09 1:02
professionalDaveyM698-Apr-09 1:02 
AnswerRe: Playing videos in the form using c# Pin
Dino Mulahusic7-Apr-09 23:40
professionalDino Mulahusic7-Apr-09 23:40 
AnswerRe: Playing videos in the form using c# Pin
#realJSOP7-Apr-09 23:46
professional#realJSOP7-Apr-09 23:46 
AnswerRe: Playing videos in the form using c# Pin
King Julien7-Apr-09 23:47
King Julien7-Apr-09 23:47 
QuestionRe: Playing videos in the form using c# Pin
12Code8-Apr-09 0:23
12Code8-Apr-09 0:23 
AnswerRe: Playing videos in the form using c# Pin
King Julien8-Apr-09 0:31
King Julien8-Apr-09 0:31 
AnswerRe: Playing videos in the form using c# Pin
12Code8-Apr-09 6:22
12Code8-Apr-09 6:22 
AnswerRe: Playing videos in the form using c# Pin
MNantu8-Apr-09 0:03
MNantu8-Apr-09 0:03 
Questionhow to enable full text indexing in sql server 2005 Pin
Gonxh Aniket7-Apr-09 22:57
Gonxh Aniket7-Apr-09 22:57 
AnswerRe: how to enable full text indexing in sql server 2005 Pin
Eddy Vluggen8-Apr-09 0:21
professionalEddy Vluggen8-Apr-09 0:21 
Questionhow can I register .Net dll in other machine? Pin
svt gdwl7-Apr-09 22:37
svt gdwl7-Apr-09 22:37 
QuestionHow to manipulate text contour in animated gif ? Pin
ErezRozn7-Apr-09 22:32
ErezRozn7-Apr-09 22:32 
QuestionExporting Cystal Report to Excel Pin
prajeesh7-Apr-09 22:21
prajeesh7-Apr-09 22:21 
AnswerRe: Exporting Cystal Report to Excel Pin
jimish18-Apr-09 2:34
jimish18-Apr-09 2:34 
GeneralRe: Exporting Cystal Report to Excel Pin
prajeesh8-Apr-09 20:12
prajeesh8-Apr-09 20:12 
GeneralRe: Exporting Cystal Report to Excel Pin
jimish19-Apr-09 0:13
jimish19-Apr-09 0:13 
GeneralRe: Exporting Cystal Report to Excel Pin
prajeesh12-Apr-09 20:28
prajeesh12-Apr-09 20:28 
AnswerRe: Exporting Cystal Report to Excel Pin
jimish112-Apr-09 23:21
jimish112-Apr-09 23:21 
GeneralRe: Exporting Cystal Report to Excel Pin
prajeesh13-Apr-09 0:52
prajeesh13-Apr-09 0:52 
AnswerRe: Exporting Cystal Report to Excel Pin
jimish113-Apr-09 19:53
jimish113-Apr-09 19:53 
GeneralRe: Exporting Cystal Report to Excel [modified] Pin
prajeesh14-Apr-09 19:23
prajeesh14-Apr-09 19:23 
GeneralRe: Exporting Cystal Report to Excel Pin
jimish114-Apr-09 21:48
jimish114-Apr-09 21:48 
QuestionHow save image from memory stream to excel file Pin
Isengrin_Czech7-Apr-09 22:17
Isengrin_Czech7-Apr-09 22:17 
Hallo

I need help with my code ...
I read image from my picturebox to memorystream and next i want save this
image from memorystream to my xls file.

I dont now how,... i have forever same problem,xls file then show only
System.Drawing.Bitmap but image isnt show.

Here is my code..

Excel.Application oXL;
Excel._Workbook oWB;
Excel._Worksheet oSheet;


try
{

    oXL = new Excel.Application();


    oWB = oXL.Workbooks.Open("C:\\tmp\\plan_udrzby.xlt", 1, false, 5,
     "", "", true, Excel.XlPlatform.xlWindows,
     "\t", false, false, 0, true, 1, 0);

    oSheet = (Excel._Worksheet)oWB.ActiveSheet;
    DataRowView vypis = (DataRowView)machine_OverviewBindingSource.Current;


    MemoryStream ms = new MemoryStream();

    myPictureBox.Image.Save(ms, ImageFormat.Jpeg);
    ms.Seek(0, SeekOrigin.Begin);

    Image img = Image.FromStream(ms);

    System.Windows.Forms.Clipboard.SetDataObject(img);


    //Car
    oSheet.Cells[3, 2] = vypis["Car"];
    //Foto
    oSheet.Cells[6, 2] = ; //Here i dont now 
  }
catch (Exception theException)
{
    String errorMessage;
    errorMessage = "Chyba: ";
    errorMessage = String.Concat(errorMessage, theException.Message);
    errorMessage = String.Concat(errorMessage, " Řádek: ");
    errorMessage = String.Concat(errorMessage, theException.Source);

    MessageBox.Show(errorMessage, "Chyba");
}


Can someone help my please

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.