Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-20-2011, 06:07 AM
beachdog beachdog is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Sep 2011
Posts: 3
beachdog is on a distinguished road
Default Content Controls Form Programming

I'm developing a MS Word Template using Visual Studio 2008. I"m planing on having customized C# code associated with the form for form validation.

The project creates a dll along with the dotx file and others. When I'm ready to distribute the docx file using the template, will that dll have to be distributed as well?
Reply With Quote
  #2  
Old 09-20-2011, 06:33 AM
OTPM OTPM is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
I am not sure why you are using Visual Studio Code for validation when you can do the same in Word with VBA. You then don't have the issue of havning to distribute the dll.
Hope this helps. If not then post a sample with what validation you need and I will see if I can hep you further.
Good luck.
Tony(OTPM)
Reply With Quote
  #3  
Old 09-20-2011, 06:58 AM
beachdog beachdog is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Sep 2011
Posts: 3
beachdog is on a distinguished road
Default

Quote:
Originally Posted by OTPM View Post
Hi
I am not sure why you are using Visual Studio Code for validation when you can do the same in Word with VBA. You then don't have the issue of havning to distribute the dll.
Tony(OTPM)
Well...I'm using VS and C# because that's what I know and familiar with. However, I suppose I could do the VBA thing as I have done some VB programming in .NET. It's somewhat similar. What I really don't want to have to contend with is the distribution of the dll. Kind of defeats the whole purpose of having the form in some respects.

For example, this form could very well be used on another network. So if I understand it ( the process I'm pursuing) correctly, the person using the Word form, would need that dll in their path someplace?? If that's the case, that completely blows.
Reply With Quote
  #4  
Old 09-20-2011, 07:03 AM
beachdog beachdog is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Sep 2011
Posts: 3
beachdog is on a distinguished road
Default

My validation is really pretty basic. All I want to do is have required input for some textboxes, as well as for one textbox ensure the format is correct. For example, there's textbox for phone number. I'd want to ensure the user inputs 0-9 digits and the "-" character only.
Reply With Quote
  #5  
Old 09-20-2011, 10:26 AM
OTPM OTPM is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
You would need to ensure that your distribution list also receive the dll and know how to install it.
I would strongly recommend that you build the form with VBA as you can store the VBA with the form to make it easier to distribute.
Good luck.
Tony(OTPM)
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Content boxes help mac173173 Word 1 06-24-2011 03:49 AM
Grouping Content Controls cksm4 Word VBA 2 03-01-2011 12:46 PM
outlook programming add Junk e-mail option to menu bar chriskaza81 Outlook 0 11-25-2010 03:58 AM
Programming based on an enter key event edayers315 Word VBA 0 06-11-2010 09:57 AM
Package for CD with links to Windows media player content and Flash Shockwave content hectorh PowerPoint 4 10-15-2009 12:22 PM


All times are GMT -7. The time now is 11:04 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft