Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi folks,

does anybody know what the easiest way to dump a dataset to word is that doesent take all day to transfer the data.

 

Is it somehow possible to do using the xml repsentation of the dataset, and if so how can one generate ans xslt from the dataset.

 

 

Any Ideas :confused:

Hamlet
Posted
you can use the WriteXml() method of the dataset to output an XML representation. If you then want to transform that xml into some other format you can always create your own XSLT to do that.
Posted

I think you are missing the point. What I ultimately want to do is dump the dataset information into a table in an MS Word document. I can do this by looping through the dataset and writing to individual cells in the table in word, the only problem is that this is so slow that it hurts to sit and watch it.

 

So what I was thinking wast I could take the xml representation of the dataset and dump this, now I have seen exampls of this done but they all rewuire one to manually create an xslt, my problem is that my dataset is dynamically generated and can be different everytime, so I need a way to do this on the fly as they say....

 

Any more ideas ....

Hamlet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...