Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML and SQL imports

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: NULL
Date: 9/1/2005 2:30:00 PM
On 1 Sep 2005 06:22:44 -0700, "smonczka" <smonczka@g...> wrote:

>He designed a ASP.Net page that pulls info about our clients and the
>products they bought from our SQL back end.  I created a Excel PO
>worksheet that the employees fill out to submit an order.  What we were
>trying to do is push info from the ASP page into the Excel order form.
> They pull up the ASP page, locate an existing client and push a button
>that brings up the order form and fills in the client information.  The
>Data is always in the same place on both the ASP page and the order
>form.

That sounds almost ideal to use XML+XSL and make an officeXML
document. I do this quite regularly here, you just need to save your
Excel "template" as XML (in Office 2003) then convert it to an XSL
stylesheet which "fills in the gaps" from an XML recordset created in
.NET. 

Have a look at a saved Excel XML file in a text editor, it's a pretty
straightforward structure and you should be able to see immediately
which elements you need to add <xsl:value-of select="blah" /> to, in
order to generate your output file. 

You'll need to send the following headers from .NET 

Content-type: application/vnd.ms-excel
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Expires: 0

Then send the results of transformToObject() with your XML file and
XSL stylesheet.

HTH
Cheers - Neil


>We used VB to create our first version and it work properly till we
>tried it on a system other than the one it was developed on and ran
>into security issues, VB could not create the object remotly, in other
>words VB on the web pages could not create the Excel sheet.  We even
>tried .Net Remoting at one point and still ran into security issues.
>
>Thanks for any direction you can give us on this one.  :)
>
>Steve



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent