Outputting a view as HTML

I am trying to write an agent that automatically creates an HTML page each day for all documents in a view.

The code works:

ForAll o In vaItem.EmbeddedObjects

Call o.ExtractFile("C:\Safety" & o.Name)

write #1,“<a href=chr$(34)” & “documents/” & o.Name & Chr$(34) & “>” & descr & “

end forall

but the HTML page fails because there are extraneous quotes at the beginning and end of each line.

Is there a way to do what I’m attempting to do so that the output is something like

<a href="file1.pdf>Description 1

<a href="file2.pdf>Description 2

instead of

"<a href=“file1.pdf>Description 1

"<a href=“file2.pdf>Description 2

Thanks

Instead of

Subject: Use the Print statement instead

The Print statement won’t insert the extra quotes like the Write statement does. Also you may find it easier to use alternative string delimiters like the pipe symbol or curly braces so that you dont have to use things like Chr$(34) to represent your double quotes.