>I'm getting a syntax error when running a mail merge form in vfp6. I'm writing the pages to a text file and then executing the following code to print it.
>m.lctemp = filetostr(afile)
>??? m.lctemp && this triggers the syntax error
>
>Thru trial & error I found that it will print 52 pages (out of 490 pages) w/o getting the error. This is approx. 77,132 bytes (on disk). This seems like an odd number for a maximum. 53 pages (78,612 bytes) gets the error.
>Also, maybe someone has a better command than ??? for printing text files under win95/98.
>Or better yet, how to print using set textmerge . . . under win95/98.
>All ideas appreciated.
>Bill
Is it a text file? Could you print it from WordPad? If yes, you can use ShellExecute to print it.
If it's not broken, fix it until it is.
My Blog