Word Automation Export toWord Problems

S

Shane

Hi ,
I am using word Automation to export to word .
I am getting a exception like
ex.message gives :- Command only available in print layout view.
ex.stacktrace gives :- at Word.View.set_SeekView(WdSeekView prop)
My code is I am trying to add a Image to Header ...
oWord.ActiveWindow.ActivePane.View.SeekView =
WdSeekView.wdSeekCurrentPageHeader;
logoCustom = oWord.Selection.HeaderFooter.Shapes.AddPicture(logoPath,
logoCustom.Select(
logoCustom.Name =
logoCustom.Left = (
String logoPath = GetImgPath();ref oFalse, ref oTrue, ref oMissing, ref
oMissing, ref oMissing, ref oMissing, ref oMissing);ref
oMissing);"CustomLogo";float)WdShapePosition.wdShapeLeft;
//SETTING FOCUES BACK TO DOCUMENT
oWord.ActiveWindow.ActivePane.View.SeekView =
WdSeekView.wdSeekMainDocument;
Can you please help me out...
I am using word 2003 and windows server 2003
Can you please help me out...
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top