Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
PIEBALDconsult3-Apr-11 16:34
mvePIEBALDconsult3-Apr-11 16:34 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
Albert Holguin3-Apr-11 16:48
professionalAlbert Holguin3-Apr-11 16:48 
GeneralRe: Hou to dll in Visual Studio without using console? Pin
PIEBALDconsult4-Apr-11 2:53
mvePIEBALDconsult4-Apr-11 2:53 
QuestionC# DirectX - redirectiong audio to another output Pin
hrubon22-Apr-11 3:47
hrubon22-Apr-11 3:47 
AnswerRe: C# DirectX - redirectiong audio to another output Pin
Michael900017-Apr-11 20:45
Michael900017-Apr-11 20:45 
QuestionException form HRESULT 0*800AC472 Pin
situ211-Apr-11 21:52
situ211-Apr-11 21:52 
AnswerRe: Exception form HRESULT 0*800AC472 Pin
dan!sh 1-Apr-11 22:14
professional dan!sh 1-Apr-11 22:14 
GeneralRe: Exception form HRESULT 0*800AC472 Pin
situ211-Apr-11 22:19
situ211-Apr-11 22:19 
I think , i should range in this code please help me how i use range in this code


private Excel.Application app = null;
        private Excel.Workbook workbook = null;
        private Excel.Worksheet worksheet = null;
       // private Excel.Range workSheet_range = null;
        object misValue = System.Reflection.Missing.Value;
         
       

        public void createDoc()
        {
            try
            {
                app = new Excel.Application();
                app.Visible = true;
                workbook = app.Workbooks.Add(1);
                worksheet = (Excel.Worksheet)workbook.Sheets[1];
            }
            catch (Exception e)
            {
                Console.Write("Error");
            }
            finally
            {

            }
        }

        public void addData()
        {
            string s;
            int i = 1;

            foreach (ListViewItem li in listView2.Items)
            {
                s = "A" + i.ToString();
                worksheet.get_Range(s, misValue).Formula = li.Text;
                i++;
            }
        }


        public void addData1()
        {
            string s;
            int i = 1;

            foreach (ListViewItem li in listView1.Items)
            {
                s = "A" + i.ToString();
                worksheet.get_Range(s, misValue).Formula = li.Text;
                i++;
            }

        }

GeneralRe: Exception form HRESULT 0*800AC472 Pin
Bernhard Hiller3-Apr-11 22:22
Bernhard Hiller3-Apr-11 22:22 
AnswerCross-post Pin
Wendelius1-Apr-11 22:18
mentorWendelius1-Apr-11 22:18 
AnswerRe: Exception form HRESULT 0*800AC472 Pin
Abhinav S3-Apr-11 7:20
Abhinav S3-Apr-11 7:20 
QuestionNeed help w/ custom serialization (specifically OnSerializing attribute) [modified] Pin
SledgeHammer011-Apr-11 14:03
SledgeHammer011-Apr-11 14:03 
AnswerRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
Dave Kreskowiak1-Apr-11 15:21
mveDave Kreskowiak1-Apr-11 15:21 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
SledgeHammer011-Apr-11 15:47
SledgeHammer011-Apr-11 15:47 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
Dave Kreskowiak1-Apr-11 17:10
mveDave Kreskowiak1-Apr-11 17:10 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
SledgeHammer011-Apr-11 17:29
SledgeHammer011-Apr-11 17:29 
GeneralRe: Need help w/ custom serialization (specifically OnSerializing attribute) Pin
Dave Kreskowiak2-Apr-11 2:16
mveDave Kreskowiak2-Apr-11 2:16 
Questiona little help on "most used" codes ! Pin
_Q12_1-Apr-11 11:44
_Q12_1-Apr-11 11:44 
AnswerRe: a little help on "most used" codes ! Pin
jschell1-Apr-11 12:03
jschell1-Apr-11 12:03 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_1-Apr-11 20:29
_Q12_1-Apr-11 20:29 
GeneralRe: a little help on "most used" codes ! Pin
jschell4-Apr-11 8:11
jschell4-Apr-11 8:11 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_4-Apr-11 18:40
_Q12_4-Apr-11 18:40 
GeneralRe: a little help on "most used" codes ! Pin
Michael900017-Apr-11 21:02
Michael900017-Apr-11 21:02 
GeneralRe: a little help on "most used" codes ! Pin
_Q12_18-Apr-11 0:06
_Q12_18-Apr-11 0:06 
GeneralRe: a little help on "most used" codes ! Pin
Michael900018-Apr-11 12:16
Michael900018-Apr-11 12:16 

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.