6 Replies - 515 Views - Last Post: 06 February 2012 - 08:51 AM Rate Topic: -----

Topic Sponsor:

#1 antik636  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-February 12

C# programm , reading from excel file , zipping , sending email.

Posted 05 February 2012 - 01:30 PM

Hello guys! i'm a beginner programmer. And i'm trying to write a programm and would like to ask some professional advice. Sorry for my english. :(

The things i need this programm to do : read some numbers from excel file (save them for future use ) , then to add 10 excel files to archive , and open archive with Outlook express , then programm automatically enters e-mails where to send (those will be the same always) , and copies those numbers to email (the ones it read from excel file ) and sends it . Thats it.

Would like to ask for advice , what to start with? And how to work with zip archivator programm and outlook express from C#? Thank you in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: C# programm , reading from excel file , zipping , sending email.

#2 m_wylie85  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 65
  • View blog
  • Posts: 661
  • Joined: 15-October 10

Re: C# programm , reading from excel file , zipping , sending email.

Posted 05 February 2012 - 01:33 PM

No offence mate but that is quite a task for someone new to programming I would suggest undertaken some tutorials and read a book on c# then try what you want to make.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3290
  • View blog
  • Posts: 6,898
  • Joined: 02-June 10

Re: C# programm , reading from excel file , zipping , sending email.

Posted 05 February 2012 - 02:32 PM

I will make a common suggestion though: Quit trying to develop your own application before you lean *how* to code in your chosen language. Trying to write a program from scratch as a learning exercise never works this early in your schooling.

This type of thing is covered very early on in any self-teaching book. Which makes me think you really aren't ready to be designing an application yet.

Some of the tutorials below are for C# not C, C++, VB.NET [...]. But the conceptual stuff of classes, object oriented design, events etc. are not language specific and should give you enough guidance in theory of program development for you to be able to look-up specific code example in your chosen coding language.

Newbie/Rookie said:

I have a little programming experience but I need to write ...


You need to start there. I can't say "I have little experience in speaking Russian, but I have been assigned to write a mystery novel in Russian. Can you help me?"

We can help you by saying "First learn basic programming and the language of C#. Then take on assignments." Could someone here write this program for you? Sure. Could someone here map out all the processes you need to follow and do the Software Design part of this in the slim hope you could code it from there? Sure. But we don't volunteer to do the job that you're either getting paid for, or getting a grade for. You may want to read this.

For now, just work on the lessons. Do a self-teaching book from cover to cover. Then consider writing a program.

Don't try to create a useful working program to fit a need of yours (or a for-pay contract) as your introduction to coding project. When you are learning to code you don't know enough to code a program, let alone know how to engineer the architecture of a program. It would be like saying "I don't know how to read sheet music, or play an instrument. I think I'll write a 3 act opera as my first learning experience."

I don't say this to be mean. We've seen lots of new coders take this approach and we know it doesn't work. Trying to design your own programs before you understand the basics of the code language you've chosen just leads to problems, frustrations, and 'swiss-cheese' education (lots of holes).


Resources, references and suggestions for new programmers. - Updated Jan 2012
Spoiler

Was This Post Helpful? 1
  • +
  • -

#4 Sergio Tapia  Icon User is offline

  • Is that a raincoat?
  • member icon

Reputation: 1012
  • View blog
  • Posts: 3,816
  • Joined: 27-January 10

Re: C# programm , reading from excel file , zipping , sending email.

Posted 05 February 2012 - 02:46 PM

That my friend is a big project. It sounds like something I would charge a client on oDesk for creating.

Is this for a school project?

Anyways, divide and conquer. Your first bit to tackle in my opinion would be how to add rows to an excel table via C# code. Are you using .NET 4?
Was This Post Helpful? 1
  • +
  • -

#5 tlhIn`toq  Icon User is offline

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3290
  • View blog
  • Posts: 6,898
  • Joined: 02-June 10

Re: C# programm , reading from excel file , zipping , sending email.

Posted 05 February 2012 - 02:50 PM

Sergio is right.

Q: How do you eat a giant elephant?
A: One small bite at a time.

This article does a decent job of helping you break it all down - at least for smaller projects.
This is the 'Help me with my homework' article you wanted.


But something this large is going to be filled with several classes and numerous files. Do you have any experience at making classes? Do you understand OOP concepts?

This post has been edited by tlhIn`toq: 05 February 2012 - 02:50 PM

Was This Post Helpful? 1
  • +
  • -

#6 Curtis Rutland  Icon User is offline

  • (╯°□°)╯︵ (~ .o.)~
  • member icon

Reputation: 3134
  • View blog
  • Posts: 5,402
  • Joined: 08-June 10

Re: C# programm , reading from excel file , zipping , sending email.

Posted 06 February 2012 - 08:37 AM

Quote

Q: How do you eat a giant elephant?


Quickly, before it starts to rot?
Was This Post Helpful? 1
  • +
  • -

#7 tlhIn`toq  Icon User is offline

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3290
  • View blog
  • Posts: 6,898
  • Joined: 02-June 10

Re: C# programm , reading from excel file , zipping , sending email.

Posted 06 February 2012 - 08:51 AM

View PostCurtis Rutland, on 06 February 2012 - 09:37 AM, said:

Quote

Q: How do you eat a giant elephant?


Quickly, before it starts to rot?


touché.

Or as they say in the South.. Touchy touchy
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1