I have a page that includes an iframe, defined as
<iframe id="ifrStory" width="100%" runat="Server" visible="false" height=500 />
This is populated by the codefile with
ifrStory.Attributes.Add("src", Request.ApplicationPath & Mid(document.DOCPath, 2))
If the document requires more than 500 pixels height, scroll bars appear. Perfect!
However, I am now trying to design a printable form of the page. Here I want the iframe to have whatever height it needs so that the whole document is printed. How do I do this? If I omit the Height property, then the Iframe has the default height (100 pixels?) only.
Related question: can I insert further Iframe elements at run time? I have a table that may contain some more documents, and I'd like the option of "print them all". Or is there a different approach that I should use to printing documents through the browser?