How can I print an XML or HTML document

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 458
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

How can I print an XML or HTML document

#1 Post by digitsoft »

hello Roger
How can I print an XML or HTML document
Nolberto Paulino
Regards

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: How can I print an XML or HTML document

#2 Post 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 )
Best regards,

Chris.
www.aboservice.be

k-insis
Posts: 120
Joined: Fri Jan 28, 2011 4:07 am

Re: How can I print an XML or HTML document

#3 Post 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 )

Post Reply