Hi Jose,
i added and changed a lot in CSED to meet my specific needs, but left CSED_princ.inc untouched so far. Print Preview isn´t working anymore now. In your original version it does work! So what could i have crashed elsewhere in order to make print preview not work anymore.
As far as i can tell the problem seems to be this line: (CSED_Print.inc)
IHTMLDocument2_WriteString(pHTMLDocument2, strText)
"strtext" holds the expected data (this i can verify - the created html code shows without error in e.g. firefox), but it doesn´t show up in preview (print preview window shows up, but without code content).
I changed the main message pump (in CSED.bas - Winmain), could this be a problem ? I guess - No, print preview uses it´s own ("pPrint.DoEvents") - right ?
There must be something else i changed and didn´t notice it´s dependency for print preview.
Maybe you could give me a hint which are the requirements for print preview to work.
Thanks
JK