Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: displaying data from 1 form to another Pin
Andrei Ungureanu23-Nov-07 1:13
Andrei Ungureanu23-Nov-07 1:13 
GeneralRe: displaying data from 1 form to another Pin
Pete O'Hanlon23-Nov-07 1:17
mvePete O'Hanlon23-Nov-07 1:17 
GeneralRe: displaying data from 1 form to another Pin
Joe22-Nov-07 23:01
Joe22-Nov-07 23:01 
GeneralRe: displaying data from 1 form to another Pin
benjymous22-Nov-07 23:27
benjymous22-Nov-07 23:27 
GeneralRe: displaying data from 1 form to another Pin
csanda122-Nov-07 23:15
csanda122-Nov-07 23:15 
GeneralRe: displaying data from 1 form to another Pin
benjymous22-Nov-07 23:48
benjymous22-Nov-07 23:48 
AnswerRe: displaying data from 1 form to another Pin
Aparna.B23-Nov-07 1:05
Aparna.B23-Nov-07 1:05 
QuestionHow to apply styles to excel ? Pin
tr_thorn22-Nov-07 22:40
tr_thorn22-Nov-07 22:40 
hi,

i have got a class like this in my windows form project.I wanna change ranges horizantalaligment to left?


class ExcelAktar
{
private Excel.Application Excelim;
private Excel.Workbook CalismaKitabi;
private Excel.Worksheet CalismaSayfasi;

public void OkuVeYaz(DataGridView DisDataGrid, string CalismaSayfasiIsmi)
{
//DisDataGrid.AllowUserToAddRows = false;
Excelim = new Excel.ApplicationClass();
object SalakObje = System.Reflection.Missing.Value;
CalismaKitabi = Excelim.Workbooks.Add(SalakObje);
CalismaSayfasi = (Excel.Worksheet)CalismaKitabi.ActiveSheet;
CalismaSayfasi.Name = CalismaSayfasiIsmi;

int SutunIndex = 1;
int SatirIndex = 2;

// Sütunlar Yazılıyor.
foreach (DataGridViewColumn Sutun in DisDataGrid.Columns)
{
CalismaSayfasi.Cells[1, SutunIndex] = Sutun.HeaderText;
SutunIndex++;
}

// Satırlar Yazılıyor.
foreach (DataGridViewRow Satir in DisDataGrid.Rows)
{
for (int ci = 0; ci < DisDataGrid.Columns.Count; ci++)
{
CalismaSayfasi.Cells[SatirIndex, ci + 1] = Satir.Cells[ci].Value.ToString();
}
SatirIndex++;
}

// Excel gösteriliyor
Excelim.Visible = true;

// Biçimlendirme

CalismaSayfasi.get_Range("A1", "J1").EntireColumn.AutoFit();
CalismaSayfasi.get_Range("A1", "J1").Font.Bold = true;
CalismaSayfasi.get_Range("A1", "J1").EntireColumn.Font.Size= 7;
CalismaSayfasi.get_Range("A1", "J1").HorizontalAlignment = 2;
CalismaSayfasi.get_Range("A1", "J1").RowHeight = 16;
QuestionGenerics question 2 Pin
calendarw22-Nov-07 22:39
calendarw22-Nov-07 22:39 
QuestionPop-Out like window Pin
Programm3r22-Nov-07 22:23
Programm3r22-Nov-07 22:23 
Questionhow to export an html image file into pdf format Pin
chithra.r22-Nov-07 21:53
chithra.r22-Nov-07 21:53 
AnswerRe: how to export an html image file into pdf format Pin
dan!sh 22-Nov-07 22:00
professional dan!sh 22-Nov-07 22:00 
AnswerRe: how to export an html image file into pdf format Pin
pmarfleet22-Nov-07 22:04
pmarfleet22-Nov-07 22:04 
QuestionHow to pass multiple parameter SqlParameter in one? Pin
TheShihan22-Nov-07 21:37
TheShihan22-Nov-07 21:37 
AnswerRe: How to pass multiple parameter SqlParameter in one? Pin
N a v a n e e t h22-Nov-07 21:54
N a v a n e e t h22-Nov-07 21:54 
GeneralRe: How to pass multiple parameter SqlParameter in one? Pin
TheShihan22-Nov-07 22:41
TheShihan22-Nov-07 22:41 
AnswerRe: How to pass multiple parameter SqlParameter in one? Pin
pmarfleet22-Nov-07 21:56
pmarfleet22-Nov-07 21:56 
AnswerRe: How to pass multiple parameter SqlParameter in one? Pin
Joe22-Nov-07 23:08
Joe22-Nov-07 23:08 
Questionho to add right-click to a "Console" object ? Pin
carabutnicolae123422-Nov-07 21:34
carabutnicolae123422-Nov-07 21:34 
AnswerRe: ho to add right-click to a "Console" object ? Pin
leppie22-Nov-07 21:58
leppie22-Nov-07 21:58 
AnswerRe: ho to add right-click to a "Console" object ? Pin
Andrei Ungureanu22-Nov-07 22:03
Andrei Ungureanu22-Nov-07 22:03 
GeneralRe: ho to add right-click to a "Console" object ? Pin
carabutnicolae123422-Nov-07 23:45
carabutnicolae123422-Nov-07 23:45 
Questionupdating database Pin
Nitin.raj22-Nov-07 21:30
Nitin.raj22-Nov-07 21:30 
AnswerRe: updating database Pin
Andrei Ungureanu22-Nov-07 21:34
Andrei Ungureanu22-Nov-07 21:34 
GeneralRe: updating database Pin
Nitin.raj22-Nov-07 21:50
Nitin.raj22-Nov-07 21:50 

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.