Jump to content
Xtreme .Net Talk

Recommended Posts

  • 4 weeks later...
Posted

C# sample

 

Hello Chris!

 

It was a while ago, but you may be able to use it anyway. It is a C# sample, but works.

 

oRng = oSheet.get_Range("A4","E4");

oRng.Font.Bold = true;

oRng.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;

oRng.Borders[Excel.XlBordersIndex.xlEdgeBottom].Color = 0;

oRng.Borders[Excel.XlBordersIndex.xlEdgeBottom].LineStyle = Excel.XlLineStyle.xlContinuous;

oRng.Borders[Excel.XlBordersIndex.xlEdgeBottom].Weight = 2;

 

oSheet is the WorkSheet object

 

Rg, Nygma

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...