Page 1 of 1

How can I print an XML or HTML document

Posted: Tue Jul 02, 2024 10:39 am
by digitsoft
hello Roger
How can I print an XML or HTML document

Re: How can I print an XML or HTML document

Posted: Tue Jul 02, 2024 11:47 pm
by skiman
Hi,

The following should work.

Code: Select all

DllCall( "Shell32.dll" , DLL_STDCALL, "ShellExecuteA", 0, "print", "your file", Chr(0), Chr(0), 3 )

Re: How can I print an XML or HTML document

Posted: Wed Jul 03, 2024 12:26 am
by k-insis
Would do for html, but not xml unless xml has embedded link to xlst and default browser would allow transformation.

For xml you need to convert it into table of sort with xlst (style sheet definition) to get html and then print it.
You can of course do that manually too.

https://www.w3schools.com/xml/xsl_intro.asp

https://learn.microsoft.com/en-us/visua ... ew=vs-2022


xml to html via xlst is one of ways how e-invoice visualisation without PDF is done





skiman wrote: Tue Jul 02, 2024 11:47 pm Hi,

The following should work.

Code: Select all

DllCall( "Shell32.dll" , DLL_STDCALL, "ShellExecuteA", 0, "print", "your file", Chr(0), Chr(0), 3 )