![]() ![]() THtmlViewer displays single (non-frame) documents. It also probably is pretty prudent to ask what OS and Delphi you are trying this with. All three are HTML document display components: THtmlViewer The basic component. If what was posted above doesn't work, check the registry of the computer you are on to see if a printto command is defined. Formatted printing of the HTML document Print preview. I have a suspicion that it may be something to do with the dual tray printer being set up on one virtual printer port USB003, but this doesnt seem to affect any other program that I print from. The ThtmlViewer and TFrameViewer components provide an easy way to display HTML documents in a Delphi program. ![]() This means if any app supports it, it's probably a vendor extension. All other applications print correctly to the default printer (tray 2) or whatever alternative printer I select, so it isnt an issue with the printer setup. ![]() ShellExecute(0, 'printto', PChar(DocName), PChar(S), nil, SW_HIDE) įor what you might notice, the "printto" command within Windows Explorer might not be supported for the document(s) you are trying to print (ShellExecute is a Windows Explorer shell function) - "printto" is not standard and doesn't appear in the MSDN documentation for ShellExecute ( n.microsof t.com/en-u s/library/ bb762153(V S.85).aspx - though it could probably just be old). Printer.GetPrinter(Device, Driver, Port, hDeviceMode)
0 Comments
Leave a Reply. |