|
-
Aug 31st, 2009, 10:28 PM
#1
Thread Starter
Fanatic Member
Adding Control to Word's Footer programmatically
any idea?
i'm able to create the control at runtime but it display on top, any idea how to do it in footer?
PS: i'm using Office 2007 and .net 2008
thanks
-
Sep 1st, 2009, 02:13 AM
#2
Re: Adding Control to Word's Footer programmatically
Eric
What code are you using to create a control?
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Sep 1st, 2009, 02:25 AM
#3
Thread Starter
Fanatic Member
Re: Adding Control to Word's Footer programmatically
i'm using Word 2007 template and it got this code in the Startup event
Code:
foreach (Word.Section wordSection in this.Sections)
{
wordSection.Footers[Word.WdHeaderFooterIndex.wdHeaderFooterPrimary]
.Range.InlineShapes.AddPicture(@"C:\imageresize_1.jpg", ref missing, ref missing, ref missing);
}
i'm planning to use Ribbon which simply got toggle button so user can choose wether to activate or deactivate it (show image or not) in the template but when i used above code in the toggle button click, it seem can't use the value "missing"..not sure why
any other approach?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|