¿ªÔÆÌåÓý

Re: Simple question - is possible to print the Database Tables?


 

Bruce,? (revisited this from another post)
"downloadable file" depends in large part what the web server sends the browser.? ?In the discussion that follows, this is what happens on Groups.io.
When you click on a PDF file, the server sends a response containing "Content-Type: application/pdf" - if you have a plug in in the browser registered that says "I know what to do with a PDF file, let me handle it", the browser hands it off to the PDF viewer.
When you click on a DOC file, the server sends "Content-Disposition: attachment; Content-Type: application/msword" and as I have no plugin to view "msword", the browser brings up the "Save As..." dialog to save the attachment.
When you click the Export database button though, the server sends a standard html page with "Content-Type: text/plain" - the browser does not receive anything that it could interpret as a "file", only text to be displayed.? So the onus is on the user to take that text and massage it into some other format such as a document, spreadsheet, whatever.? Fortunately the text is in CSV format so turning that raw text into a structured file is pretty straightforward.
My then is to enhance the Export function to generate and send an actual "file" rather than display the text in a browser window (which becomes cumbersome or even impossible on large databases).
Thanks
Toby

Join [email protected] to automatically receive all group messages.