473,383 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How do I insert a set number of pages into a word document dependent on answer to que

I am fairly new to VB, have done a user form where I have asked a question How many projects? If the answer is greater than 1 I want the word document to insert that number of extra pages into the document. How do i do that?
Thank you
Aug 3 '17 #1
1 1475
Frinavale
9,735 Expert Mod 8TB
I have never had to work with word in .NET myself; however, maybe this code example will help you out: How to automate Word from Visual Basic .NET to create a new document. It includes an example of how to insert a hard page break.
Aug 4 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ingvald | last post by:
hi, i've hit a wall regarding php and ms word. what i want is to open a document containing bookmarks, insert text where the bookmarks are, and save. it's working, unless the bookmark is in...
1
by: J | last post by:
Hi, all I have an asp.net page which can let users generated monthly report based on a 15 pages word document (as template), I created several "fields" in the doc file, then all I need to do just...
0
by: kstriyhon | last post by:
hellow i have a jpg picture in Base64 encoded format and i need to insert this picture in a word document. is this possible?? if it's how can i do this?? i'm using the word object library. any...
1
by: Tom | last post by:
Hi, I have a vb.net program from wich i want to open a ms word-doc and insert an other document into it. But i want it to work on every version of word (minimum word 2000). can anyone help...
1
by: Javier | last post by:
I have a problem when i try to insert text in a word document.I have bookmarks in the word doc but when intesrt text in a determinate range(i use the range property of word bookmarks) i don't get...
3
by: Adam Faulkner via DotNetMonster.com | last post by:
I want to create a method within a class that opens a Microsoft Word 2000 Document and has the facility to Create a new word document and then extract a Page that exists within the original Word...
22
by: donovans | last post by:
Hey there, Is there a way to extract information from Microsoft Access 2003 and insert it into a specific location in a Microsoft Word 2003 document? Please assist, Thanks and Regards, Donovan
3
by: Ghaleon | last post by:
Does anybody know how to insert a picture from a database to a bookmark in a Word Document using vb. ? I know how to insert image by the path, like Word_App.Selection.InlineShapes.Add.Picutre...
10
by: kamlesh21630 | last post by:
How to insert tag in word document as per content style Does anyone know the code to insert tags as per style in word.
0
by: Thinus | last post by:
I need to insert a textbox at the position of the mouse pointer in a Page of a word document whether there are text or not. I have the following code to get the position: Declare PtrSafe...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.