Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP9 - Embedding SEO Tags in Single Page Reports With Image

Status
Not open for further replies.

stanlyn

Programmer
Sep 3, 2003
945
US
Hi,

Any idea on how to embed html hidden tags for the seo bots in a report. The report contains a single image along with some viewable text. Just doing a regular report with report fields is doing that ok.

So, how is the best way to get the hidden seo text embedded into the html file from a report? The seo text contains the ocr text for the document image that is shown. I suppose one way could completely build the html page using text merge and str2file(), but that would require a lot of trial and error... (hoping for something faster) Using the report way acts like a template...

I need to completely finish the page, ready for publishing at the time the page is created. (I mean... no second or third runs thru the page to add the text. I need to finish the page while standing on the underlying vfp record)...

Thanks,
Stanley
 
It's unclear what you're talking about.

As far as I understand you print a report. Supposed with a reportlistener creating a html file output.
Then you want SEO tags, are you talking about meta tags in the head of a html page here? There only would be one head section, not one per record, AFAIK.

I suggest you dig into
Bye, Olaf.
 
Stanley,

Are you perhaps referring to the "Save as HTML" feature of a report? Essentially, this lets you save any report, including its data, as an HTML file. I doubt if that's what you want, given that it is a design-time feature, and not something an end user would normally see.

If that's what you are looking at, be aware that the resulting HTML file is an ordinary text file. You can therefore read it into a variable (using FILETOSTR()), alter it, and write it back to a file (using STRTOFILE()). Given that you can edit the variable, you can easily insert any HTML tag, or any other text, at any point in the file.

If that's not what you are looking at, you will need to clarify your question.

If you basically just want to create an HTML page, of course you can do that just like any other string of text, and it can contain any HTML tags you like. The fact that the tags are hidden and are intended for "seo bots" (whatever that means) is irrelevant.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top