[help/advise/etc] Small Application menu

User Tag List

Results 1 to 5 of 5
  1. #1
    RisuBoost's Avatar Member CoreCoins Purchaser
    Reputation
    1
    Join Date
    Feb 2010
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [help/advise/etc] Small Application

    Hello Forum!

    Retarded as I am, I managed to say Yes to a friend when he asked me if I could help him make a small app for his new, small (read; tiny) company where he prep cars before the salesman sell it to someone.

    I've tried writing it in C# but since I have no experience with Any language I seem to either break it completely. The app he want is pretty basic. He wants a 1 page app with some main topics (in this case its car sizes; Small, Medium, Large) with checkboxes under it being stuff like Oil, Tires, interior etc. All he wants is to check the boxes and write in a name and car type and hit print and get 2 printed A4 with the information checked/written in the app. I've made a quick picture of how my vision is and what I've currently made. (setup, boxes etc wise) I'm currently stuck on actually making the printable version and get it to the collect the data from the first form. Since I'm a noob, I'm using Visual Studio but I have a feeling I might not succeed using it so I'm thinking about going python instead.

    If anyone got any advices, tips or can help in any way - Anything will be appreciated! If anyone by any chance decides to quickly make such an app to show how it also can be done (in any form or shape) please do send the source code with so I can learn from it as well!

    [help/advise/etc] Small Application-di-3dg6-jpg

    Thanks in advance !

    [help/advise/etc] Small Application
  2. #2
    abuckau907's Avatar Active Member
    Reputation
    49
    Join Date
    May 2009
    Posts
    225
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not quite sure what you mean. Can you do a picture with actual labels, user input, and final result?

    edit: re-read your post, sounds like you're just trying to print a receipt (or bill) ??
    so basically your friend will hand a stack of these papers to the car salesman, who will sum them up and give him money. ?

    for the input: who's first and last name? The person who cleaned the car (ie. so your friend can know which employee to pay) or the name of the car salesman (because your friend does business with many?) ?? and what would an example 'subject' be? I'll make the app for you (send you source code, not .exe lol) since it's a 1 time thing. But I need more project info

    Your description and your example image don't match up. You say the first page should have 3 columns, "small med large" each w/ the exact same check boxes beneath them? your picture has 4 columns. Threw me off for a second.
    Last edited by abuckau907; 11-13-2012 at 05:42 PM.

  3. #3
    dmns's Avatar Private
    Reputation
    1
    Join Date
    Oct 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Post more detailed pictures with different examples on how the receipt would be.

    You should also tell us if the "topics" and the "items" are fixed and "check only" or if they must be customizable from a "back office" or something else.

  4. #4
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Your best bet would be to do it in html. You can still use your program, just write to a file everything in html. Then run the file and in the web browser click print page. This is a crappy work around, I have no idea how to create a document in C#. This method would be simple and easy... Just look into html

  5. #5
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, you can just use WPF to do it easily. Create a simple WPF window as your "template" for the page to print. Programatically fill it with whatever values, etc, you want. Then use the following to print it;

    Code:
            private void PrintThisWindow()        {
                var pd = new PrintDialog();
                if (pd.ShowDialog() == true)
                {
                    // Basically; get the printer caps, then figure out the transformation size for the window to fit on w/e page size is selected.
                    // If the window is setup to work on A4 size pages, then it won't be skewed to look wonky.
                    PrintCapabilities caps = pd.PrintQueue.GetPrintCapabilities(pd.PrintTicket);
                    double scale = Math.Min(caps.PageImageableArea.ExtentWidth / ActualWidth, caps.PageImageableArea.ExtentHeight / ActualHeight);
                    LayoutTransform = new ScaleTransform(scale, scale);
                    var size = new Size(caps.PageImageableArea.ExtentWidth, caps.PageImageableArea.ExtentHeight);
                    Measure(size);
                    Arrange(new Rect(new Point(caps.PageImageableArea.OriginWidth, caps.PageImageableArea.OriginHeight), size));
    
    
                    // And finally... print the window :D
                    pd.PrintVisual(this, "WPF Window Print");
                }
            }

Similar Threads

  1. Replies: 1
    Last Post: 06-04-2014, 02:30 PM
  2. Newbie WoW Boting - Help! - LAZYBOT.etc..
    By CookieMage in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 05-16-2013, 06:03 PM
  3. I need just a small ammount of help
    By FNOG in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 10-28-2007, 07:34 AM
  4. Small Help
    By Phase228 in forum Art & Graphic Design
    Replies: 3
    Last Post: 06-12-2007, 06:22 AM
All times are GMT -5. The time now is 04:35 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search