# Printing problem from text field, datagrid etc

**URL:** <https://forum.kirupa.com/t/printing-problem-from-text-field-datagrid-etc/300958>\
**Category:** flash\
**Created:** [December 1, 2009, 9:19am UTC](https://forum.kirupa.com/t/printing-problem-from-text-field-datagrid-etc/300958 "2009-12-01T09:19:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hagop](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hagop](https://forum.kirupa.com/u/hagop)\
**Post date:** [December 1, 2009, 9:19am UTC](https://forum.kirupa.com/t/printing-problem-from-text-field-datagrid-etc/300958/1 "2009-12-01T09:19:39Z")

</div>

Hi all

I have a flash CS4 AS 3.0 scene with one frame only. The scene contains text fields, comboboxes and a datagrid.  
I want to print the [COLOR=red]content[/COLOR] of the text fields, comboboxes (the [COLOR=red]selected[/COLOR] value) and datagrid [COLOR=red]contents[/COLOR].  
I’ve searched the internet but could not find adequate information.

The following commands print the [COLOR=seagreen]firstName\_txt [/COLOR][COLOR=black]text field only if I convert it to a movie clip first.[/COLOR]  
[COLOR=blue] var myPrintJob:PrintJob = new PrintJob();  
myPrintJob.start();  
myPrintJob.addPage(firstName\_txt);  
myPrintJob.send();  
[/COLOR]Isn’t there a way to access the and print the text field content directly ie:  
myPrintJob.addPage(firstName\_txt.text);

I have the same problem with the datagrid. Using the following  
[COLOR=blue]myPrintJob.addPage(datagrid);[/COLOR]  
prints the datagrid like a screen shot with separating borders.

But what if I want to print one row of a datagrid and without the borders?

Thanks  
Hagop
