home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.pascal.borland      Borland Pascal was actually pretty neat      2,978 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,129 of 2,978   
   JG to Marco van de Voort   
   Re: printing variable problems   
   13 Apr 06 10:28:44   
   
   From: jg@crescentcomputing.co.uk   
      
   Marco van de Voort said   
      
   > On 2006-04-12, Klaus Jorgensen  wrote:   
   > > I'm no expert in proportional fonts, but are you telling me that   
   > > printing a string that is prefixed with a given number of space   
   > > characters, does not always start at the same position?   
   > >   
   > > Will the printer print the xxx's on a different position if printed as   
   > > follows:   
   > > writeln(space(30),'xxx iiiiiiii');   
   > > writeln(space(30),'xxx mmmmmmmm');   
      
   > No, but the "iiii" and "mmm" section have different lengths, and   
      
   >   writeln('i',space(30),'xxx iiiiiiii');   
   >   writeln('w',space(30),'xxx mmmmmmmm');   
      
   > typically goes wrong.   
      
   More importantly, the OP wants (needs) a multi column facility, even if   
   not for two different descriptions on one line (cannot see why that is   
   necessary) but certainly for a Quantity, Description, Price, (VAT), Line   
   total . . .   so a minimum of 4 and probably more 'Tabs' that align   
   correctly - and with money the decimal point needs to be aligned (for a   
   professional appearance).   
      
   To achieve this I spent many hours writing routines to   
   Align_Right(x.x,x.x), H_Pos(x.x), Print_Money(xx.x,x.x), Set_Face('T'),   
   set_Point(x), Print_Date(date_variable), etc.   
      
   The Esc P2 codes are readily available for Epson Printers, many of which   
   are common to the full range. Some of course are specific to the   
   features/capabilities of particular models.   
      
   JG   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca