Discussion draw form

  • Wednesday, April 11, 2012 10:26 PM
     
     

    This is one of my basic ideas. (only drawing in paint - for now)

    I would create a form A4.

    Is it possible?

    You can design and print a form like this, without borders.

    greetings

All Replies

  • Wednesday, April 11, 2012 10:37 PM
     
     

    Vitor,

    Explain more about your concept - the idea ... what is it supposed to do?


    Please call me Frank :)

  • Wednesday, April 11, 2012 10:44 PM
     
     
    Frank,

    Each combobox, represent the work we have developed and fine. Thanked.
    All of them will be filled with names.

    Essentially in your case as you would have to help me was able to draw the formA4.

    Take a sheet from the printer. This is the size.

    Is it possible?
  • Wednesday, April 11, 2012 10:49 PM
     
     
    Frank,

    Each combobox, represent the work we have developed and fine. Thanked.
    All of them will be filled with names.

    Essentially in your case as you would have to help me was able to draw the formA4.

    Take a sheet from the printer. This is the size.

    Is it possible?

    Forget about your printed size - in the program (any program), your forms have zero to do with that. Even though I can't give you guidance on the printing part (out of the box at least), unless you're trying to use the "Print Form" thing - which is a joke - then don't worry with your printed output when you're creating the form itself.

    The form is meant to gather input from the user and show results to them as appropriate. For now, don't even consider anything beyond that.

    It's a nice looking form, I just don't really understand what it's doing. I guess this is sort of an expansion of each task? Beyond the name of the task, now there are specifics for it I'm guessing?


    Please call me Frank :)

  • Wednesday, April 11, 2012 11:10 PM
     
     
    Frank,

    What happens is that each responsibility that I attribute to the month by clicking oncombobox and occupying all: next month I can change each task.

    My concern now is to design a form that meets the maximum possible withcombobox. Later print that, even with the basics prinform.
  • Wednesday, April 11, 2012 11:15 PM
     
     
    Frank,

    What happens is that each responsibility that I attribute to the month by clicking oncombobox and occupying all: next month I can change each task.

    My concern now is to design a form that meets the maximum possible withcombobox. Later print that, even with the basics prinform.

    Let me think about it some.

    I'll get back to you tomorrow. I like the idea - I think! - I'm just not 100% that I'm following it.


    Please call me Frank :)

  • Wednesday, April 11, 2012 11:21 PM
     
     
    Frank,

    You're a machine!
    Certainly a blessing!
    I want God to give you everything you need, according to his will, my dear andesteemed friend.
    You're in my heart!
    Many thanks!

    Big Hug.

    Good evening.
  • Wednesday, April 11, 2012 11:27 PM
     
     

    Vitor,

    I have already shown you how to make a Form A4 size. (taking the PPI settings of the screen into acount)

    I have also shown you how to print a Form so that it exactly fits the printable area of the printer while keeping aspect ratio.

    Another problem you have mentioned is that your screen is not big enough to show a Form in A4 size. Therefore you asked how to do it using Scrollbars. Is this problem solved meanwhile?

    Now I do not understand which additional question you have.


    Armin

  • Wednesday, April 11, 2012 11:46 PM
     
     

    Armin,
    When I gave the code, I tested them, but always gave me error. In addition to theimages that you have provided, showing that the printer margins, especially inlow, still very large.
    However I will again consider all responses and test them.

    Thanked.

    hug

  • Wednesday, April 11, 2012 11:50 PM
     
     
    If you do so, please stay in this thread. I will not be able to handle your other different threads. Thank you.

    Armin

  • Thursday, April 12, 2012 3:44 PM
     
     
    Frank,

    How are you? How are running jobs?

    hug
  • Thursday, April 12, 2012 3:59 PM
     
     
    Frank,

    How are you? How are running jobs?

    hug

    I guess you're asking me if I have an idea of how you can do what you want. The only thing that comes to mind is that instead of having a datatable for "tasks", you'd have one for each type of task, and in that table, then you could set up the various fields like you show.

    Does that make sense?


    Please call me Frank :)

  • Thursday, April 12, 2012 5:20 PM
     
     
    Frank,

    Help me now, just set the form size A4?

    hug
  • Thursday, April 12, 2012 5:23 PM
     
     
    Frank,

    Help me now, just set the form size A4?

    hug

    Vitor,

    I honestly don't know anything about how to do that. I use something totally different and I've never attempted to look into how to use the out of the box printing stuff.

    I thought you were asking about how to make a program keep up with the data - I didn't know your main concern was printing or I'd have stayed out of it because that's just not my forte.


    Please call me Frank :)

  • Thursday, April 12, 2012 8:19 PM
     
      Has Code
    Frank,

    Help me now, just set the form size A4?

    hug

    As I've already shown you in your other thread:

       Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
    
           Using g = Graphics.FromHwnd(IntPtr.Zero)
              Size = New Size(CInt(21 / 2.54 * g.DpiX), CInt(29.7 / 2.54 * g.DpiY))
          End Using
    
       End Sub


    Armin

  • Thursday, April 12, 2012 10:27 PM
     
     

    Armin,

    Your code, which leaves the edges marked in red. See distances.

    How do I print borderless?

    Imports System.Drawing.Printing

    Public Class Form1
        
        

        Private Sub Button2_Click(ByVal sender As System.Object, _
                ByVal e As System.EventArgs) Handles Button1.Click
            ' If you don't want the print button to print the print button
            Button1.Visible = True
            ' Set the PrintAction to display a Print Preview dialog
            PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
            ' This prints a copy of the form as it appears in the PrintPreview
            PrintForm1.Print()
            ' Display the print button again on the form
            Button1.Visible = True

        End Sub
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown

            Using g = Graphics.FromHwnd(IntPtr.Zero)
                Size = New Size(CInt(21 / 2.54 * g.DpiX), CInt(29.7 / 2.54 * g.DpiY))
            End Using

        End Sub

    End Class

  • Thursday, April 12, 2012 10:38 PM
     
     
    Frank,

    Friend, you've never been outside. Thanks to you, I have the codes and methodsto enter names and save them.

    You're too important to me!

    Only that part of the print is a detail. How should comprise any program should be represented on paper. I like basic idea for me to build the basic image. I want tohighlight the basic.

    In this sense, I tried to explore all their studies in print.

    Thanked.

    I hope I can continue to count on you, even if only in different subjects?
  • Thursday, April 12, 2012 11:49 PM
     
     

    Vitor,

    as I said in the other thread, I will make short sentences. I do it because automatic translation is more reliable with short sentences. I repeat it because you did not respond.

    You are mixing different topics. You wanted the Form to be in A4 size. Does this work now? 

    Printing a Form is a different topic. I do not know the PrintForm component. I have never used it. If I read the documentation, it seems it can not stretch the Form to the full paper size. However, if your Form already has A4 size, this should not be a problem. I have also shown you how to make the client size of the Form to match the printable area of the paper. Consequently, if you print the client size of the Form only, it should match exactly.


    Armin