Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print form properties
Message
From
22/06/1999 13:57:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00232128
Message ID:
00232604
Views:
39
>1) Datetime appears with gray background
>2) I can not print a string>255 character long, so I need to do this:
>@ prow(),5 say substr(thisform.message,1,250)
>@ prow(),pcol() say substr(thisform.message,251)
>
>And major problem - instead of chr(13) - return I have some symbol...
>What could you suggest? May be using a report is easiest solution here? I've already changed to report, but in this case I need to use some table, even if I don't print anything from this table...

You can create a report which wouldn't use any tables, but you still need at least one dummy cursor with one record to be able to run it, because the Report Form command has a range clause, i.e. it is assumed to be done over a workarea which has something open.

As for printing longer strings, the 255 char limit is inherent to VFP's print engine; I have had trouble with expressions which returned more than that, or longer memos. Your solution is OK for one line; here's how I'd go to print it into a column:

set memo to < your max width of column goes here >
for i=1 to memlines(thisform.message)
@prow()+1, 5 say mline(thisform.message, i)
endfor

Sorry, can't try your code with a printer, I write these messages at home, no printer at hand.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform