Home use the draw cmd. Each object has it's own x,y position. see the example below
IF Printer.Setup() THEN RETURN 'You need to set up your printer first. Draw.Begin(Printer) ' Initializes the draw Draw.Text(TextArea1.Text, 200, 200) ' Prints the contents of a TextArea in the upper left hand corner Printer.NewPage ' Prints a new page Draw.Foreground = Color.Red Draw.Rectangle(500, 200, 32, 32) ' Draws a small red rectangle Draw.End ' Then send page to the printer This example is in the help files. have a look to get a better feel .Goto the gtk.ext or qt.ext find the 'Draw' object. For a preview change the object of the draw command to a drawing area. Steven On Wed, 2009-03-25 at 07:38 +1100, richard terry wrote: > I wondered if anyone could show me how to print direct to a printer at > co-ordinates x-y > > I have to a sheet divided into four sections (not quarters), the top two are > 2/3 of the page height, and I need to print to exactly specifica locations on > an A4 page. > > Any help appreciated. > > Richard > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user