The Artima Developer Community
Sponsored Link •

C# Answers Forum
C# .net 2005 to excel 2003

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
ajliaks ajliaks

Posts: 2
Nickname: ajliaks
Registered: May, 2006

C# .net 2005 to excel 2003 Posted: May 4, 2006 1:28 PM
Reply to this message Reply
Advertisement
Hi guys,
my first time here, and my first time with C# also.
Please some help.
I want to create a new excel workbook, and writte "hello" in cell (row 2, col 5) of Sheet2.
... I can't even create the excel...!
I am trying this way...

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Office = Microsoft.Office.Core;
using VBIDE = Microsoft.Vbe.Interop;
using Excel = Microsoft.Office.Interop.Excel;

namespace PlayingWithExcelProj
{
public partial class frmPlayWithExcel : Form
{
private void btnOpenNewWk_Click(object sender, EventArgs e)
{
Excel.Application excelApp = new Excel.ApplicationClass();
excelApp.Visible = true;
Excel.Workbook newWorkbook = excelApp.Workbooks.Add(Excel);

}
}
}

Thanks in advance,
Aldo

Topic: News:UCanCode Releases Upgraded Visio 2003- Like Flow/Diagramming Source Co Previous Topic   Next Topic Topic: C++ Builder 6 and Crystal Report

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use