The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I need to insert header and footer text into the print document that I''m printing from the edit control. The header and footer text aren''t part of the edit control text and need to be built programatically. I also need to preserve the color and formating of the edit control text.
How would I accomplish this?
Thanks,
Gordon
ASArun Srinivasan Syncfusion Team November 5, 2004 12:07 PM
Hi Gordon,
You could use the technique demonstrated in this Essential Grid Knowledgebase Article. But, you cannot do this in the current version of Essential Edit and I have passed this along as a feature request for our new version of Essential Edit that will be shipping soon.
Regards
Arun
GRGordon RheaNovember 5, 2004 01:05 PM
Hi Arun,
I have a hack that is doing most of what I want. I did use that article to put in the header and footers and drew the lines of text one at a time into the print page using the PrintPageEventArgs.DrawString method and ended each page when the y coordinate was more than the page margins bottom. I''m thinking there has to be a better way to do this other than one line at a time. I also don''t have any of the coloring from the edit control.
Thanks,
Gordon
ASArun Srinivasan Syncfusion Team November 8, 2004 11:01 AM
Hi Gordon,
Yes, going through the Essential Edit source code, the Black brush is specified in the printing code which leads to this behavior.
Also there is a check to see if the Printer supports color and this setting is explicitly set to false.
I am followed up with the Edit team on this issue. They are currently working on the newer version of Edit and there will an alpha version available soon. The newer verison will include support for Headers and Footers and will include much better Printing Support.
If you can open a support incident in Direct-Trac we can update it with instructions for you get the current alpha version of Essential Edit.
Regards,
Arun