How to print an xml file

Hi,


I am trying to print in batch xml files, I have not found an easy way to do it directly to the printer, then I’ve thought first convert xml to pdf file and then send then print the pdf file. 

Searching the web, I found a method called cPrintURL, then I’m doing something like: 

  oPC:cPrintURL( “file:///C:/utilidades/javier/cg_15541.xml” ) 

This displays an error in the pdfcreator: 

---------------------------------------------------------------------- 
PDFCreator - www.pdfforge.org 
---------------------------------------------------------------------- 
Errorprotocol 
---------------------------------------------------------------------- 
PDFCreator 1.3.2 - Error message 
---------------------------------------------------------------------- 
ERROR DESCRIPTION: 
          Error-Nr:    -2147023179 (Automation error) 
          Modul:    modMain 
          Procedure:    PrintURL 
          Line:         50050 
          Date/Time:    03-30-2013 / 11:42:15 
---------------------------------------------------------------------- 
CALLSTACK: 
---------------------------------------------------------------------- 
SYSTEMINFO: 
 Windows 7 6.1 Build 7601 (Service Pack 1) 
  [TerminalServer IsWinXPPlus IsWinVistaPlus IsWinVistaSP1 IsWindows7 IsWindows7HomePremium] 
---------------------------------------------------------------------- 

Could you kindly help me identify how I should use the method correctly, or if you know any option to do what I need. 

I really appreciate your help. 

Thank you very much. 

Best regards, 
Javier

Hi,


this error message indicates that there is no program specified for cPrintURL.
Usually this prints the URL using the Internet Explorer and you might have to adjust settings there, also the output may not look as expected.

regards,

Robin

Hi Robin,


thanks for answering, I’ll check IE options.

by the way, what you mean with:
also the output may not look as expected.

Thanks. 

Best regards, 
Javier