Results 1 to 3 of 3

Thread: MainConsoleApp to run all programs

  1. #1

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    MainConsoleApp to run all programs

    Hi.
    I'm a bit frustrated.
    Not sure where is the correct topic feel free to change it.
    An idiot on the company want to create something like a schedule program that will take email parameters and send and email accordingly.
    The issue is that what we have is a bunch of different programs, console, forms etc that run individually since now.
    The idiot has the bright idea to create one big MEGA scheduler console program that will take eeeevery application we have by now, re-translate them to C# and have them run from that program.
    I'm not really sure how can I go about now. What he wants will take lots of time and since the programs are not the same, for example I have a VB format that sends crystal reports and I have added a crystal report viewer to the form. There is no form on a console to add that so what should I do?
    So any ideas on how this can be done in another manner and not have to write every program again?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: MainConsoleApp to run all programs

    Can you modify the applications you already have? If so, I'd suggest modifying then to accept commandline parameters and then run them from the Windows Task Scheduler. I don't use Crystal Reports but I would imagine that it would be able to render a report as an image and then that can be embedded or attached to an email. I've done something similar with SQL Server Reporting Services.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: MainConsoleApp to run all programs

    That is a good idea, I though that too and mentioned it but he don't want it.
    To pass command args to a form or console app.
    He seems to want to embed all our apps in one big app. I fail to expain that this will "bloat" the app because he gets defensive about it (when i doubt , defend).
    I don't think I will avoid it eventually. Well I'm on a tight schedule so they will also have to waaaaitt a long time for this.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width