Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Report Designer

Report Designer

Scheduled Pinned Locked Moved C#
winformsgraphicsdesignhelptutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Itanium
    wrote on last edited by
    #1

    Hi All!!! I have to design an application like access report designer. Where we would have drag n drop contorls like Text Boxes, Check Boxes, Radio Buttons, Labels etc and then have to preview them,select them, resize them and so on. I was thinkin about Creating standard Contorls but then I realized that its difficult to handle them, for example if you click a textbox to select it for resizing, it will start funtioning, similary if u select checkbox to resize, it will eb checked. And their preview wasnt posisble a well. So i created my own custom controls using GDI+ whose preview is also possible in PrintPreviewDialog. Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. Thanx in Advance :) sorry for my bad English.

    M 1 Reply Last reply
    0
    • I Itanium

      Hi All!!! I have to design an application like access report designer. Where we would have drag n drop contorls like Text Boxes, Check Boxes, Radio Buttons, Labels etc and then have to preview them,select them, resize them and so on. I was thinkin about Creating standard Contorls but then I realized that its difficult to handle them, for example if you click a textbox to select it for resizing, it will start funtioning, similary if u select checkbox to resize, it will eb checked. And their preview wasnt posisble a well. So i created my own custom controls using GDI+ whose preview is also possible in PrintPreviewDialog. Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. Thanx in Advance :) sorry for my bad English.

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      Itanium wrote: Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. When you click on the control, trap the click by handling the "OnClick" event. Draw a frame around the control and set the focus to the control. You might need to trap the message itself rather than the event and "steal" it from the control. I've been wanting to write a generic form layout tool for ages, but have never gotten around to it. Want to collaborate? Marc Latest AAL Article My blog Join my forum!

      R 1 Reply Last reply
      0
      • M Marc Clifton

        Itanium wrote: Any help (even if is very basic and just provide an idea to take start) will be highly appriciated. When you click on the control, trap the click by handling the "OnClick" event. Draw a frame around the control and set the focus to the control. You might need to trap the message itself rather than the event and "steal" it from the control. I've been wanting to write a generic form layout tool for ages, but have never gotten around to it. Want to collaborate? Marc Latest AAL Article My blog Join my forum!

        R Offline
        R Offline
        Roger Alsing 0
        wrote on last edited by
        #3

        since he is going to use it in a report i think it would be unwise to use actual window controls. it would be better to create your own gdi+ based 'controls' that render themselves onto a graphics/dc using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. if you want to do a form designer , you should take a look aT: http://www.windowsforms.com/default.aspx?tabindex=5&tabid=47&ItemID=13&mid=142[^] //Roger

        M 1 Reply Last reply
        0
        • R Roger Alsing 0

          since he is going to use it in a report i think it would be unwise to use actual window controls. it would be better to create your own gdi+ based 'controls' that render themselves onto a graphics/dc using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. if you want to do a form designer , you should take a look aT: http://www.windowsforms.com/default.aspx?tabindex=5&tabid=47&ItemID=13&mid=142[^] //Roger

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          Roger J wrote: using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. Those are great points. My thinking cap isn't properly attached this morning. :) Marc Latest AAL Article My blog Join my forum!

          I 1 Reply Last reply
          0
          • M Marc Clifton

            Roger J wrote: using true controls he will get a hard time to render them in a good way to the printer , and if the report is big , he will endup with a zillion hwnds that eats resources.. Those are great points. My thinking cap isn't properly attached this morning. :) Marc Latest AAL Article My blog Join my forum!

            I Offline
            I Offline
            Itanium
            wrote on last edited by
            #5

            Hello Marc!! Infact i started work on the deisgner few days back. I used the same way as Rojer told. I have made my own custom control classes hierarchy and renedring them both on design time and at preview. Here i posted because( i was studying Java Reflection API's in previous days there we can have all classes , properties methods etc i htought that if anyone have used same kind of thing in .net (if available)) so that if i could found a better way but i came to know htat i am going in right direction. You said about "Collboration"... Sure ...why not...:) sorry for my bad English.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups