CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

NewWindow

by MarcoRu » 23 Feb 2015 18:29

Hi all,
Im trying to open an xml file in a new window calling WebApplication.NewWindow(). The problem is that I have a XML stylesheet in the same directory where the file is placed, but in the new window I see only the xml code.
Is there a way to specify a stylesheet in NewWindow? in XML file the stylesheet is declared in thi way : <?xml-stylesheet type='text/xsl' href='fatturapa_v1.1.xsl'?>

Thanks.
MarcoRu
 
Posts: 41
Joined: 23 Sep 2014 16:39

by Alexander Bulei » 23 Feb 2015 18:45

Hi MarcoRu,

Update: If you use IW14, you need register the mimetype for XSL.

Check attached project.

Drop the "simple.xsl" and "xml-test.xml" into "wwwroot" folder.


Also check the correct urls to the files.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MarcoRu » 23 Feb 2015 18:53

Hi Alexander,
I'm using IW14. Sorry I don't wrte this before. I need only to register mimetype for XSL then?

P.S.: Where is attached project?

Thank you!
MarcoRu
 
Posts: 41
Joined: 23 Sep 2014 16:39

by Alexander Bulei » 24 Feb 2015 10:23

Hi MarcoRu,

Ops..attached.

Best Regards.
You do not have the required permissions to view the files attached to this post.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by MarcoRu » 25 Feb 2015 13:04

Hi Alexander, thanks!
I tried your solution. With Firefox works, but with IE doesn't works.
MarcoRu
 
Posts: 41
Joined: 23 Sep 2014 16:39

by Alexander Bulei » 27 Feb 2015 11:11

Hi MarcoRu,

Tested with IE9, and works as expected.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General

Who is online

Users browsing this forum: No registered users and 10 guests

Contact Us.