Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need to convert dbf to html
Message
 
To
07/04/2017 03:53:44
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01649884
Message ID:
01649928
Views:
35
>>>>Any chance of an answer to my earlier reply to you asking for more help?
>>>
>>>Hi Colin,
>>>
>>>The VFP help is undoubtedly a much better place than my services to get you started with strToFile().
>>>
>>>I'll be happy to help you further once you've setup some code and completed some testing.
>>>
>>>just do it!
>>
>>I just need an example of code then I can take it from there
>
>Question: did you read the messages I sent to you? I have a strong feeling that you think that this is difficult, while it's extremely easy.
>
>If the structure of data is fixed, the easiest is to create a report, and use VFP's built in solution to format the report output as HTML.
>
>If it's not fixed, you can create a simple program which takes the data from your tables, field by field, and adds the html formatting markup necessary to make it look the way you like. HTML is text with only a few added markup "tags" to format the text.
>
>If you want the HTML to show the data similar to a Browse, you need to add the necessary Table tags, look here for details: https://www.w3schools.com/html/html_tables.asp
>
>Writing HTML is almost as easy as riding a bicycle. But you must dare to lift your feet from the ground. :-)

I did send a reply to your earlier post

I ran the code you suggested and this is what I got - I did post this in my reply

ACCOUNTNO STOCKREF JOBNO QTYPENDING QTYONHAND IMAGE CARLCO123 TEST 123 20 35 CARLCO123123.jpg CARLCO123 TEST NEW 1234 0 0 CARLCO1231234.jpg

What I see is the 6 fields names of my dbf followed by the contents of the 6 fields of record 1 followed by the 6 fields of record 2

Is this what the htm file should look like - if so that was easy
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Reply
Map
View

Click here to load this message in the networking platform