Sometimes, the text in column header and cells are sent to Adobe PDF printer as pure text(selectable and copiable) while printing, but sometimes as image(not selectable).
I don't know how exactly this goes since on the same printed page there could be both vector texts and image texts. One thing is for sure that the font and apperence of texts are relevant. I checked the source code of UIElement, there is more than one method to draw texts, which is decided by itself. Is there some option to keep the text pure vector while printing? Is GDI/GDIPlus option of the grid helps?
Hello,
Please let me know which version of Infragistics you are using and which programming language you're using.
I'm using C# and I'm pretty sure this situation went on with all recent versions including 2013.2.
Thank you for your response.
I've attached a sample project that I created to try to reproduce the issue. The only PDF printer I have installed is the open source PDF Creator and I was unable to reproduce the issue using that printer.
When you run the project, select the printer you want to use from the combo at the bottom left of the form and then click Print to bring up the print preview dialog. From there you can click the print button to actually print the grid.
Please let me know if you are able to reproduce the issue using my sample.
Thank you for your work!
If you export the grid to a PDF file, you can see that the text is exported as text.
When the grid draws the text onto the printer graphics object, it's using exactly the same code, regardless of the font. So there's nothing the grid is doing differently.
So the only possible reason for this is that the printer driver is providing a Graphics object which is deliberately checking for certain fonts or font settings and translating that drawing into an image instead of drawing the text directly.
I would try contacting the provider of the printer driver you are using.
I should have been more specific with my previous response. I'd like you to take the Excel file and print it to the same XPS printer that you originally exported the grid to. It's our theory that the issue is with the specific printer driver. Since the XPS printer and the PDF printer use different printer drivers it's possible that one will reproduce the issue while the other doesn't.
I did as you say. The PDF file printed by excel is fine and attatched.
But I believe there's something with UIElement should be fix. As a report, you can't print a part of it with image and another text. Why is a normal text kept pure text while the italy ones converted to image? Is there essential different between fonts?
Our engineers have determined that this is not an issue with our components. All we do is use the standard .NET drawing primitives to render onto the graphics object provided by the printer. You can verify this by exporting the grid to an Excel sheet and then printing that Excel sheet to the PDF printer.