473,666 Members | 2,238 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Word Template Programming in C#

Hi

I want to have a MS-WORD template and which should be taken as a input to
the C# application. I will have some template variables in that template
(.dot ) file those should be replaced during run time by the C# object.
Please give some sample to work around this.

Thanks.

Mar 10 '07 #1
0 1121

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2349
by: David Zack | last post by:
Hello. I'm currently working on a tool for an intranet that allows a user to launch a Word document template from an HTML page on a corporate portal. I would now like to run a particular macro in the template, determined by the hyperlink selected. But the slash is causing problems - the hyperlink reads it as a subdirectory. Here's the code in the page now.
0
1073
by: Andrej | last post by:
Hello. I tried to export query results to word document. I created a short macro: OpenQuery (View = Datasheet), ApplyFilter, OutputTo (Output Format = rtf, for Template file I paste a shortcut to my word template file.) The result is: I get correct results but in Datasheet view. I made template with Tools/Office Links/Merge It with Word and I suppose that my template doesent work well. Could somebody help me?
2
3074
by: Ruslan Shlain | last post by:
Hello everyone. I have a question that I tried to find an answer over the weekend but did not succeeded. I have a Word template with a couple of "tags" ( <<My Tag>>) that I need to replace with data from the DB. Please point me in the right direction on how to approach this. Code samples, links or articles. Anything would work. Thank you very much in advance.
0
2727
by: Vrushal | last post by:
Hii HOW TO: Transfer Data to an word Template by Using ASP.NET What i m trying to do is .. User will select the word Template (dot file) from the asp.net page, and when i ll click SAVE i want to transfer some data to that template and save that modified template on FTP. thnx
5
7972
by: steven | last post by:
Hello, I've created a Word-template for a letter. I've made some fields in the template (such as 'customer number', 'name', ...) as follows: insert field - DocVariabele with name 'customer number' and 'name'. Now I want to fill these fields from my application and print them: Dim myWord As New Word.Application myWord.Documents.Add("c:\template.dot")
9
1418
by: sweetpotatop | last post by:
Hello, I wonder how I can populate the fields of a Word template in asp.net. Please note that data will be coming from a DB on the server. Thanks in advance.
0
1034
by: Michael D. Reed | last post by:
Using the VS office template to put code behind a word template, I would like to call the template from an other program and pass in an argument repenting a record key. The code behind the word template would use the integer to retrieve a set of record from a database. I know how to add the dataset and use it in the template. However, how do I call this template and pass in the record key. I can not find any information on how to use...
0
1559
Gyanchand
by: Gyanchand | last post by:
Actually we need to use a Word template and insert cetain values through ASP. What I have done currently is : Have created a page in HTML and written the HTML to a text file and saved it as an doc file. strBody="<html>" strBody=strBody&"<head>" ........ set sfile = objFS.createtextfile(strPath, true) sfile.write(strBody) but in this case the problem is that we are not able to add headers/footers..However this is a temporary...
3
6296
by: Auslander | last post by:
I'm new to VBA, and trying to learn how to write some code to open a word template from access and populate it using Document Properties. Here's my code: Private Sub OpenWindows_Click() Dim Word As Object Dim doc As Word.Document Dim prps As Object Dim strLastName As String Dim lngContactID As Long Dim strTitle As String Dim strPrompt As String
0
8440
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8355
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7381
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4193
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4365
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1769
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.