Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Word Automation Export toWord Problems

Reply
Thread Tools

Word Automation Export toWord Problems

 
 
Shane
Guest
Posts: n/a
 
      11-19-2009
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(log oPath,
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.wdSha peLeft;
//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...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Supressing the ctrl-c and other keys during word automation in automation apondu ASP .Net 0 07-19-2007 09:10 PM
textarea fields --> export to ms word --> word is stretch Steve HTML 6 03-03-2007 04:25 PM
Problems with word automation =?Utf-8?B?RnJhbg==?= ASP .Net 0 11-16-2005 01:44 PM
Modifying a Word document without using Word Automation Michael G. Schneider ASP General 5 12-16-2003 06:52 PM
Invalid export DLL or export format =?Utf-8?B?RGF2aWQgVmFsbGU=?= ASP .Net 0 10-29-2003 11:46 AM



Advertisments