Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: David Mustakim
  Where is David Mustakim?
 Jakarta
 Indonesia
 David Mustakim
 To: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 Tags
Subject: RE: create txt file & set it to landscape
Thread ID: 395459 Message ID: 395494 # Views: 28 # Ratings: 0
Version: Visual FoxPro 5 Category: Projects and Design
Date: Wednesday, January 15, 2014 1:39:09 PM         
   


> >
> > further to my respond to Tore:
> >

> > *** Example 3 columns print-out "text" file using non-TTF
> > *** For landscape you of course need many more than 3 cols
> >
> > x = ;
> > "12345"+SPACE( 6 )+"6789"+SPACE(7)+"0123456789"+CHR(13+CHR(10) + ;
> > "23456"+SPACE(6)+"678"+SPACE(8)+"0123"+CHR(13+CHR(10) + ;
> > "567"+SPACE(8)+"67890"+SPACE(8)+"6789"+CHR(13+CHR(10) + ;
> > "8901"+SPACE(7)+"7891"+SPACE(7)+"0123456"+CHR(13+CHR(10) + ;
> > "54321"+SPACE(6)+"56789"+SPACE(6)+"0123"+CHR(13+CHR(10) + ;
> > nH = FCREATE("e:\xxx.txt",0) && 0 is actually default
> > FWRITE(nH,x)
> > * then copy e:\xxx.txt to "printer port", and probably ERASE afterward
> >
> > *** when using true-type-font TTF it might suffice if you simply
> > *** replace the space(n) function with TAB=chr(9), - untested !
> >

> >
> >
> > David
>
> Just put space between ( 6 ) :-)
>
> -----------------
> Borislav Borissov
>
> Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
> The only thing normal about database guys is their tables.


Yes, thx. I had later realized that.. see that the first space( ) came out ok :-)

David

ENTIRE THREAD

create txt file & set it to landscape Posted by madiha saleem @ 1/15/2014 7:42:37 AM
RE: create txt file & set it to landscape Posted by Borislav Borissov @ 1/15/2014 8:23:50 AM
RE: create txt file & set it to landscape Posted by Zia Mughal @ 1/15/2014 8:34:36 AM
RE: create txt file & set it to landscape Posted by madiha saleem @ 1/15/2014 11:18:13 AM
RE: create txt file & set it to landscape Posted by Tore Bleken @ 1/15/2014 11:51:35 AM
RE: create txt file & set it to landscape Posted by David Mustakim @ 1/15/2014 12:10:34 PM
RE: create txt file & set it to landscape Posted by David Mustakim @ 1/15/2014 1:29:29 PM
RE: create txt file & set it to landscape Posted by Borislav Borissov @ 1/15/2014 1:33:42 PM
RE: create txt file & set it to landscape Posted by David Mustakim @ 1/15/2014 1:37:33 PM
RE: create txt file & set it to landscape Posted by Borislav Borissov @ 1/15/2014 1:34:58 PM
RE: create txt file & set it to landscape Posted by David Mustakim @ 1/15/2014 1:39:09 PM
RE: create txt file & set it to landscape Posted by Borislav Borissov @ 1/15/2014 1:51:16 PM
RE: create txt file & set it to landscape Posted by David Mustakim @ 1/15/2014 1:55:14 PM