Automate word

  • Thread starter Thread starter Vijay Neelam
  • Start date Start date
V

Vijay Neelam

How can I automate Microsoft Word from ASP.NET.

My requirement is like this

I have Datagrid with checkboxes... I need to export checkbox selected rows
into Microsoft Word.

I tried to automate using vbscript got some problems on ASP.NET page the
same code worked fine in .html file.

Even automating at server-side and download and open in external window is
also ok.

I'm using vb.net code behind

Please any one help me to solve my problem.

Thank you
Vijay Neelam
 
Hi Vijjam Neelam

I don't think you can do that on the serverside.
I never did it, but there will be a way to start MS.Word from JavaScript on
the clientside.

That script you can start from your code behind using something like the
example I did put beneath, I think you can put in there your data from your
chexboxes too.

But for the rest, I would ask this question to in the
public.dotnet.framework.aspnet newsgroup or in some more JavaScript related
newsgroup also. But maybe someone here can tell you how to start msWord from
JavaScript on a Html page. Then I know it also. And when you get the answer
it in an other newsgroups, post it back here please?

\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

I hope this helps a little bit?
Cor
 
Back
Top