{"identifier":44420,"topic":"Commands","name":"print","text":"<code>print card <\/code>[<code>from <i>point1<\/i> to <i>point2<\/i><\/code> ]<code> print all cards print marked cards print <i>posInteger<\/i> cards print <i>card<\/i> <\/code>[<code>from <i>point1<\/i> to <i>point2<\/i><\/code> ]<code> <br><br>\n\n print {<i>field<\/i> | <i>button<\/i> } print <i>fileName<\/i> with <i>application <\/i><u> <\/u>print <i>expression<\/i><u> <br><br>\n\n <\/u><\/code>The<code> print <\/code>command prints card images, the contents of fields and buttons, documents from other programs, or the value of any HyperTalk expression. <br>\n<br>\n<code>Print card <\/code>prints an image of the current card. The option<code> from <i>point1<\/i> to <i>point2<\/i> <\/code>specifies a rectangular area of the card.  <code><pre>\n<\/pre><\/code>\n<code>Print all cards <\/code>prints the image of every card in the stack. <code><pre>\n<\/pre><\/code>\n<code>Print marked cards <\/code>prints a subset of the cards in the stack based on each card\u2019s<code> marked <\/code>property (as reflected in its Card Info dialog box). You can mark cards with the<code> mark <\/code>command. <br>\n","related":{"11943":null,"32483":"close","41060":"mark","42410":"open printing","42512":"open report printing","79600":"printMargins","90631":"printTextAlign","90961":"printTextFont","91426":"printTextHeight","91932":"printTextSize","92736":"printTextStyle","45965":"reset"},"examples":"print card\nprint card from 0,0 to 100,100\nprint card from topLeft of this card to the clickLoc\n\nprint first card\nprint this card\nprint card id 19390 from 90,0 to 180,180\n\n-- Print marked cards:\nprint marked cards -- all of them\nprint next marked card\nprint second marked card\nprint marked card 5\n\nprint 10 cards\nprint (the number of cards of this bg) cards\n\n-- Print a document using another program:\nprint \"Read Me\" with \"Teach Text\"\nif the result is not empty then ... -- didn't print it\n\n-- Print a field (preserves text styles):\nprint background field 1\n\n\n-- Print any expression (no text styles):\nprint card field 1 & return & card field 2\nprint the selection\nprint the Message box\nprint \"Hello there world\"\nprint myVariable","demo":"on printDemo\n   answer \"Are you connected to a printer?\" with \"No\" or \"Yes\"\n   if it is \"No\" then exit printDemo\n   lock screen\n   open printing\n   repeat with cardOffSet = 0 to 2\n     <b>print card<\/b> (the number of this card + cardOffSet)\n   end repeat\n   close printing\n   unlock screen\n end printDemo\n <br><br>\n\n ","debug":{"9":["print card [from poi"],"10":["Print card prints an"]}}