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

C#

 
GeneralRe: Remove case sensitivity Pin
Vikram A Punathambekar11-May-09 2:16
Vikram A Punathambekar11-May-09 2:16 
Questioncreating a directory in the solution during runtime Pin
MustafaHamed11-May-09 1:28
MustafaHamed11-May-09 1:28 
AnswerRe: creating a directory in the solution during runtime Pin
ramz_g11-May-09 1:38
ramz_g11-May-09 1:38 
AnswerRe: creating a directory in the solution during runtime Pin
Vikram A Punathambekar11-May-09 2:15
Vikram A Punathambekar11-May-09 2:15 
AnswerRe: creating a directory in the solution during runtime Pin
Dave Kreskowiak11-May-09 5:07
mveDave Kreskowiak11-May-09 5:07 
GeneralRe: creating a directory in the solution during runtime Pin
MustafaHamed11-May-09 7:27
MustafaHamed11-May-09 7:27 
QuestionHighlighting Text in Powerpoint 2007 [modified] Pin
ramz_g11-May-09 1:04
ramz_g11-May-09 1:04 
Questionhow to set a picture with a specific alignment into excel cell Pin
tofa11111-May-09 1:01
tofa11111-May-09 1:01 
Hi to all,



I'm using clipboard to insert images in excel sheet, but I can't change the default alignment for these images,

the default alignment for these images is : top left of the cell

I want to change it to : middle center in the cell

I use microsoft office 11.0 object library.

I use this code to insert my images;

(the code is  written within a for loop)

Microsoft.Office.Interop.Excel.ApplicationClass Exl = new Microsoft.Office.Interop.Excel.ApplicationClass();
                
Clipboard.SetDataObject(dataGridView1.Rows[i].Cells["BarCode"].Value);

range.Select();

object dest = Exl.Cells[i + 1, 4];


and then I past it in the sheet cells,

object kui = Exl.Cells[i+1,4];

Microsoft.Office.Interop.Excel.Range mr = Exl.get_Range(kui, kui);

mr.Cells.Worksheet.Paste(mr, mr);


what I exactly need is just to put my pictures in the middle center of the cells

Thank u all

mohammed was a great prophet

QuestionNHibernate data visible in profiler but not written to DB Pin
orinoco7711-May-09 0:20
orinoco7711-May-09 0:20 
AnswerRe: NHibernate data visible in profiler but not written to DB Pin
orinoco7711-May-09 2:03
orinoco7711-May-09 2:03 
GeneralRe: NHibernate data visible in profiler but not written to DB Pin
riced11-May-09 5:53
riced11-May-09 5:53 
GeneralRe: NHibernate data visible in profiler but not written to DB Pin
orinoco7712-May-09 0:03
orinoco7712-May-09 0:03 
QuestionCheck if drive exists Pin
Rajdeep.NET is BACK10-May-09 23:51
Rajdeep.NET is BACK10-May-09 23:51 
AnswerRe: Check if drive exists Pin
Alan N11-May-09 0:18
Alan N11-May-09 0:18 
AnswerRe: Check if drive exists Pin
stancrm11-May-09 1:21
stancrm11-May-09 1:21 
QuestionDraw Line Chart Pin
AlexDuta10-May-09 23:35
AlexDuta10-May-09 23:35 
AnswerRe: Draw Line Chart Pin
Simon P Stevens10-May-09 23:43
Simon P Stevens10-May-09 23:43 
GeneralRe: Draw Line Chart Pin
AlexDuta10-May-09 23:51
AlexDuta10-May-09 23:51 
GeneralRe: Draw Line Chart Pin
Simon P Stevens11-May-09 0:11
Simon P Stevens11-May-09 0:11 
Questionsetup project Pin
netDeveloper10-May-09 22:30
netDeveloper10-May-09 22:30 
AnswerRe: setup project Pin
Simon P Stevens10-May-09 23:50
Simon P Stevens10-May-09 23:50 
GeneralRe: setup project Pin
netDeveloper11-May-09 0:45
netDeveloper11-May-09 0:45 
GeneralRe: setup project Pin
Simon P Stevens11-May-09 0:50
Simon P Stevens11-May-09 0:50 
GeneralRe: setup project Pin
netDeveloper11-May-09 0:52
netDeveloper11-May-09 0:52 
GeneralRe: setup project Pin
Simon P Stevens11-May-09 2:44
Simon P Stevens11-May-09 2:44 

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.