Regarding printing

Posted by: vkempanna on 8 September 2017, 1:05 pm EST

  • Posted 8 September 2017, 1:05 pm EST

    Hi,


    I am using spread 4.0 for .Net Win Forms.


    My requirement on printing is ,while printing i want to print some information which is not in spread and then i need to print the spread as such.


    Is it possible to print the custom information as well the spread info in the same print document.


    Regards


    Vinutha


     

  • Replied 8 September 2017, 1:05 pm EST

    Vinutha -

    You should be able to put whatever you want into the PrintDocument.
  • Replied 8 September 2017, 1:05 pm EST

    How can i print the spread as such in the print document,how can i specify  where the spread should be positioned in the document.


    Regards Vinutha

  • Replied 8 September 2017, 1:05 pm EST

    The second parameter of the OwnerPrintDraw method is a rectangle that you will have to determine from the dimensions of the PrintDocument or you can just create a rectangle and position the spread wherever you want in the document.
  • Replied 8 September 2017, 1:05 pm EST

    To better clarify there are 2 possible ways to add extra information. Firstly, using the standard printing you could add an extra information you might require into the Header or Footer of the printed page using the Header and Footer properties in the print info class. However, you can also fully control printing by utilizing the PrintDocument class and its PrintPage event. Inside the PrintPage handler you have full control of the drawing surface and can draw whatever you wish on the page and whereever you want to draw it. The OwnerPrintDraw method will render the spreadsheet to the page. For more information on that method refer to the documentation and if you any further questions please feel free to inquire.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels