New topic: Release 5 Broke StyledTextPrinter Class
<http://forums.realsoftware.com/viewtopic.php?t=31440> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message ejd Post subject: Release 5 Broke StyledTextPrinter ClassPosted: Sun Dec 06, 2009 3:17 pm Joined: Tue Aug 21, 2007 11:45 pm Posts: 7 I just updated to RealBasic 2009 Release 5 On Mac OS X 10.6.2 I have a Sub-Routine to print the contents of a list box. This code has been working perfectly for 4 years. No changes at all. But this update has caused this line to now error as "This method or property does not exist" stp = editField1.StyledTextPrinter(g,540) Any ideas? Here is the entire sub-routine: Code: Dim e as String Dim ListCountVal as Integer Dim x as integer Dim g as Graphics Dim stp as StyledTextPrinter Dim ColumnWidth, SpaceBetweenColumns, PageHeight as Integer Dim ColumnToPrint as Integer ColumnWidth = 522 //7.5 inches minus 1/4 inch for space //divided by 2 , was 261 SpaceBetweenColumns = 0 //18 pixels is 1/4 inch PageHeight = 10 * 72 //10 inches * 72 pixels per inch ListCountVal = ListBox1.ListCount g= OpenPrinterDialog() If g <> Nil then For x = 1 to ListCountVal e=ListBox1.cell(x-1,0) editField1.text = e stp = editField1.StyledTextPrinter(g,540) stp.width = ColumnWidth ColumnToPrint = 1 Do until stp.eof stp.DrawBlock (columnWidth+SpaceBetweenColumns)*(columnToPrint-1),x*14,PageHeight If ColumnToPrint = 2 then //printing last column If Not stp.eof then // more text to print g.nextPage ColumnToPrint = 1 End if Else // more columns to print on this page ColumnToPrint = columnToPrint + 1 End if Loop next end if Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
