Trouble with the Print Functions
Posted: Mon Sep 19, 2005 6:53 pm
I am trying to print from a listicongadget and I am having trouble doing it. Here is the code:
All I get is the last line printed. I think the lines are all strung together too. How do you use the print functions? 
Code: Select all
Case #MenuBar_Editor_PRINT
If PrintRequester()
Select DataID$
Case "D" : PrintTitle$ = "Distortion Chart"
Case "R" : PrintTitle$ = "Rule Types Chart"
EndSelect
If StartPrinting(PrintTitle$)
If StartDrawing(PrinterOutput())
DrawingFont(LoadFont(0, "Courier New", 70, #PB_Font_Bold))
For index = 0 To CountGadgetItems(#List1)
Locate(0,5+index) : DrawText(GetGadgetItemText(#List1,index,0))
Next index
StopDrawing()
EndIf
StopPrinting()
EndIf
EndIf