hi,
i have a tablefield with data from database, i want select line 5- 10 or line 20- 50 , print Printcommand with selectedLines or hilitedLines dont work. need a howto
Ralle
print hilited lines of tablefield
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hi Ralle,
You're going to have to explicitly combine the data yourself. Here's something to get you started:
Also important to note is that the 'print' command is meant for printing the contents of cards, not individual fields or a chunk of text. The following commands are your friends for text printing: 'revShowPrintDialog', 'revPrintText', revPrintField'.
Hope this helped,
Jan Schenkel.
You're going to have to explicitly combine the data yourself. Here's something to get you started:
Code: Select all
on mouseUp
-- get the comma-separated list of the hilited lines
put the hilitedLines of field "MyTable" into tHilitedLines
-- append the text of the hilited lines to a new variable
repeat for each item tLineNumber in tHilitedLines
put line tLineNumber of field "MyTable" & return after tSelectedData
end repeat
-- remove the trailing return
delete char -1 of tSelectedData
-- now ask the user for the printing information
revShowPrintDialog true, true
revPrintText tSelectedData
end mouseUp
Hope this helped,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com