Hello, i need to print a FreeForm Ultratree - is there a way to do it?I found the function Print() and PrintPreview() only for Grids - i tried also to save the Tree both as Binary and XML and next load into an UltraDataSource with the goal to bind this one to an UltraGrid, with no success.
My Tree is populated-by-code because the Datatable is a result of different SQL-inquiry and code processing. His structure is like this:
Node 0 Node 1 Column1 Column2 <...> Columns n data data ... data data data ... data data data ... data Node 2 Column1 Column2 data data data data data data Node 4 Node 5 Node 6 Column1 Column2 Column3 <...> Columns n data data data ... data data data data ... data data data data ... data
Export the tree as image probably could be a temporary ploy, but i don't know how to do it.Any help is appreciated.
I'm using .NET Framework 3.5 - Visual Basic .NET - Net Advantage 2011 v2
Thanks in advance
Hello,
I will be happy to assist you with your questions.
The capability to print the ultraTree similar to the method used for the ultraGrid is considered to be a new Product Idea. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in Product Ideas, we can plan accordingly.We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your Product Idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI12030027.
To help provide you with a more immediate solution, I have created a sample demonstrating how you can print any of our controls using ultraPrintDocument.
Please run my sample and let me know if you have any questions.
Hi Jose,first of all sorry for my late response.
I've tried your proposed solution a few days ago, and it's partially good, at least for my needs.
Let me explain: your "PrintControl" solution allows me to print *any* printable Infragistics Control, but doesn't provide any way to control the size of the stream, so it's quite impossible to determine how large must be the bitmap container where the stream will be "downloaded".This method permits to obtain a print of "what-you-see"....but if the tree is very long (and i don't khow how long it is beacuse it's created dinamically) i'm not able to determine the right seize of the bitmap rectangle and, most of all, how to split it in multiple pages for the printer.
I thought the way UltraTree -> SaveAsXML -> UltraDataSource -> bind this one with UltraGrid because the last one provides more control over the print.
The way to Draw a bitmap of the FreeForm Tree will be a really usable solution if it's possible to know at least the size of the final image.
If necessary i will provide you a XML to load into a Tree - it's similar of yours (the tree of the project), with the difference that mine hide the headers columnset (but i don't know this could be interesting for the printing).
Thanks a lot,Dave