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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Adding header to the print of DevExpress Grid Control

Adding header to the print of DevExpress Grid Control

Scheduled Pinned Locked Moved C#
csshelp
3 Posts 2 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.
  • C Offline
    C Offline
    Chapooki
    wrote on last edited by
    #1

    Hi everybody! I'm using DevExpress components. You can call Print() method of Grid Control to print the current Grid with all user customizations, but, we need to add our company header to all of our reports. So, we have to add the header to grids reports, too. I found a solution in net: Using PrintingSystem and linking grid to it. Then handling CreateReportHeaderArea event of the link and making header in this handler, but, i cannot draw our header by DrawString() or DrawImage() and etc. methods. I have created a Report Header before and i wanted to add it as a sub report to grid report. Unfortunately, i just found an AddSubReport method in link object, but, i don't know how i can access to this adding sub report. :sigh: I would be so grateful if you help me. Regards, Chapooki

    B 1 Reply Last reply
    0
    • C Chapooki

      Hi everybody! I'm using DevExpress components. You can call Print() method of Grid Control to print the current Grid with all user customizations, but, we need to add our company header to all of our reports. So, we have to add the header to grids reports, too. I found a solution in net: Using PrintingSystem and linking grid to it. Then handling CreateReportHeaderArea event of the link and making header in this handler, but, i cannot draw our header by DrawString() or DrawImage() and etc. methods. I have created a Report Header before and i wanted to add it as a sub report to grid report. Unfortunately, i just found an AddSubReport method in link object, but, i don't know how i can access to this adding sub report. :sigh: I would be so grateful if you help me. Regards, Chapooki

      B Offline
      B Offline
      Bert delaVega
      wrote on last edited by
      #2

      Not familiar with DevExpress but maybe this will help? http://www.devexpress.com/Help/?document=XtraUtils/CustomDocument2424.htm&levelup=true[^]

      C 1 Reply Last reply
      0
      • B Bert delaVega

        Not familiar with DevExpress but maybe this will help? http://www.devexpress.com/Help/?document=XtraUtils/CustomDocument2424.htm&levelup=true[^]

        C Offline
        C Offline
        Chapooki
        wrote on last edited by
        #3

        thanks, I had seen that sample before, but i cannot make my header by draw string and .... i have a header which user can change it and i want to add it as a sub report to all other reports. Any way, i changed my design to make my report manually and not use DevExpress Grid Control print. Thanks again, Chapooki

        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