Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need miracle!
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00701415
Message ID:
00701830
Views:
13
Tracy,

>but I'm obviously missing new line commands or something. Am I going to have to parse the results somehow? I hope not...

Well, it will need "some" more in the end. But, parsing isn't that difficult ...


>
>Also, how to match up an html font size with a printer font? How do I get condensed? How to get in VFP 6, 8, 10, 12 etc... or 17.1 cpi, etc... What exactly is font size 1, 2, ...?

Well, here you go. You will be dependent on the relative stuff as style(sheet) info implies. Of course you can arrange that, but you'll be going deeper and deeper. For instance, you will end up with scrollbars on the screen, and in order to avoid that, you will be needed the auto-inforcing of a more condensed font. Think of padding, margins etc. etc. etc.

Or are your reports meant for the screen ??

Again, the idea is nice, but then let the browser (or print from it) do what it "likes". IOW, present it as some Internet feature. It may be psychological too.

Another thing is, I see you using Courier. That won't be for nothing huh ? So start thinking tables (< table >). Without that, you will never achieve some proper outlining.

BTW, you could also try to convert the report into HTML by VFP. Possibly nothing will come from it (hence it will do screens (forms) only ?). But you never know ...

I wish you good luck, but it would be really nice if this were the solution.

Peter

>
>>Hi Tracy,
>>
>>>>Another way to go is to display them as HTML documents in an embedded
>>>>IEBrowser control in a form. Luckily for me the reports are all written
>>
>>OK. I got the proof of concept working.
>>
>>Luckily (for me) the former coder created a secret option to print to a text file -which I renamed to prtemp.htm (** 1).
>>
>>And he had already stored the different CPI setting commands to memory variables, so I just set them to HTML control tags (**2).
>>
>>So when I choose to run the report but not send it to print, the prtemp.htm text file (containing my report) gets wrapped in some obligatory HTML code and saved to a file for viewing (** 3).
>>
>>
>>
>>** 1
>>if printcmd = 'N'
>>   set device to file c:\prtemp.htm
>>else
>>   set device to print
>>endif
>>
>>** 2
>>** old
>>*!*	*** SET CPI FOR LASER PRINTER
>>*!*	mp10 = 'chr(27)+"(s0p10H"'
>>*!*	mp12 = 'chr(27)+"(s0p12H"'
>>*!*	mp16 = 'chr(27)+"(s0p16.66H"'
>>
>>** new
>>*** SET CPI FOR LASER PRINTER
>>mp10 = ['<font size="3">']
>>mp12 = ['<font size="2">']
>>mp16 = ['<font size="1">']
>>
>>** 3
>>   set device to screen
>>   m.duh=FILETOSTR('c:\prtemp.htm')
>>   m.duh='<html><body>'+CHR(13)+m.duh+CHR(13)+'</body></html>'
>>   =STRTOFILE(m.duh,'c:\reportview.htm')
>>
>>
>>
>>I'm still going to investigate what Peter was talking about but so far this little kludge seems to work like a charm!
>>
>>Hugh
Previous
Reply
Map
View

Click here to load this message in the networking platform