Word To Jpeg/Png

A

Abhishek

Hi!
I have a problem. I need to convert word doc pages to Jpegs and I am facing
a very starnge issue.
I have tried an approach that fails on windows server 2K3 where as works
fine on XP systems. Since I need to deploy my app on the server I am facing
this issue.

I have tried the following code in C# as well as VB6 and VBA. It fails in
all 3 on the win2K3 server where as works perfectly in WinXP.

Dim oPageStart As Word.Range
oPageStart.Sections(1).Range.Bookmarks("\page").Range.Select
Clipboard.Clear
oPageStart.Sections(1).Range.Bookmarks("\page").Range.Copy '(Both The
option s Copy as well as Copy ASPicture)
oPageStart.Sections(1).Range.Bookmarks("\page").Range.CopyAsPicture

SavePicture Clipboard.GetData(), ImgName 'This gives an error "Invalid
Property Value" in Win2K3

Is there something that I am missing that is required for Win2K3
Does anyone have a better or a different solution. Please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top