Print Preview does work for embedding, use this code to access it:
void CBrowserView::OnShowPrintPreview()
{
nsCOMPtr <nsIContentViewer> viewer;
nsCOMPtr<nsIDocShell> docShell(do_GetInterface(mWebBrowser));
if (nsnull != docShell)
{
docShell->GetContentViewer(getter_AddRefs(viewer));
if (viewer)
{
nsCOMPtr<nsIContentViewerFile> viewerFile =
do_QueryInterface(viewer);
if (viewerFile)
{
viewerFile->PrintPreview();
}
}
}
}
On Sun, 25 Nov 2001 19:38:04 -0800, Alec Flett <[EMAIL PROTECTED]> wrote:
> http://www.mozilla.org/projects/embedding/faq.html
>
> No, I haven't linked it to the main embedding page - I'll get to that
> soon :)
>
> Comments/questions? post them to the newsgroup and I'll try to update
> the FAQ...I'm looking for lots more Questions as well!
>
> Alec
>