[Picture Q] html print styles in question

1. Load css styles, http://www.c-lodop.com/demolist/PrintSample10.html reference sample 10
2. Check the internal lodop html parsing information, see http://www.c-lodop.com/ faq / pp8.html
analysis point of difference, because different versions of different browsers html standard to follow, resulting in some label attribute display differences, try to avoid using differences in properties, ie can verify differences in different versions of simulation case
investigation style to make use of using each browser unambiguous generic html css js, do not support styles can try to substitute with other styles.
3. Lodop is rendered based on the native windows resolve the underlying engine, ie consistent with the call of the engine. , Ie reset the browser to try.
4. ADD_PRINT_HTM try to replace ADD_PRINT_HTML (graphic mode) try, ADD_PRINT_HTML ADD_PRINT_HTM better to clear the printer for high precision, both have their own advantages.
5. Do not load completely, to the term hypertext print add delay to try:
LODOP.SET_PRINT_STYLEA (0, "HtmWaitMilSecs", 1000) a delay of 1000 ms on download hypertext // Set
6. Use a virtual printer pdf or xps test, and the real printer comparison, excluding the impact of the printer.

html style
Figure 1:


figure 2:

Guess you like

Origin www.cnblogs.com/huaxie/p/11847142.html