krithika wrote: > Hi, > > After having embedded mozilla and obtaining the DOM Document I need to > insert pagebreaks( equivalent of what printpreview does). > > > What is the best approach to identify the page size and insert breaks > > Thanks in Advance, > Krith >
That stuff really isn't exposed to external code. You might be able to get what you want by messing with nsIPrintSettings, nsIPrintOptions, and maybe nsIPrinterEnumerator, but that stuff's all internal and completely unfrozen. Use at your own risk. The only frozen API for dealing with printing is nsIWebBrowserPrint. I don't understand what you're trying to do... there might be a better way of dealing with your problem. (Of course, it's not unlikely there isn't a better way of dealing with it, but I thought I'd check.) -Eli _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
