[EMAIL PROTECTED] wrote: >> Since it's Web-based, can't you just use the browser's >> built-in print command? > > Shhhh...... Don't tell the list admin, but the individual comments are > stored as records in a (*gasp*) database. > > What my manager wants is to print out all the historical comments in one > go. Easy peasy if they were text records. What I have had to do is > write an applett that loads each comment into a tWebBrowser, wait untill > the document is fully loaded, then scrape the text. It works, but damn > that baby is slloooooowwwww (a bit like my manager ;o) )
You what you're saying is that your current application does not already provide any way of viewing all the comments of a case, right? If it did, then you should be able to simply choose the "print" command from the browser when viewing that page of your application. If it doesn't, then I wonder why you're not adding that feature directly to the application instead of trying to make it a separate program. I assume your Web application already has a means of displaying at least one comment on the page, right? Can't you just use that mechanism to display many comments on a page? >>> So, can one of you gurus tell me: >>> Is there any way I can read a file directly into a tWebBrowser? >> >> When you call the Navigate2 command, give it a file name >> instead of a Web address. The URL might have to start with "file:". > > Once again, I would have to extract to a file first. Something worth > looking at tho.. Thx. Well, you did ask how to read a _file_, after all. I guess what you wanted was really how to load arbitrary content into a TWebBrowser, without necessarily having any file present at all. -- Rob _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi