Question about Computers & Internet
I am writing a program to open word document using VB6.
I want to fix the print setup to A5 pagesize.
Alo I want to display the text in richtextbox in word document using VB6.
Can you please help me.
Thanks in advance
Using Word with VB6, I show how you set the page size to A5:
' Declare the variable.
Dim objWD As Word.Application
' Set the variable (runs new instance of Word.)
Set objWD = CreateObject("Word.Application")
' Add a new document.
' Add some text.
objWD.Selection.TypeText "This is some text."
'Set Page Size
objWD.ActiveDocument.PageSetup.PaperSize = wdPaperA5
' Save the document.
' Quit Word.
' Clear the variable from memory.
Set objWD = Nothing
Hope this helps!
Posted on Mar 19, 2008
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Aug 13, 2010 | Microsoft Visual Basic 6.0 (361-00686) for...
Mar 01, 2010 | Microsoft Visual Basic Enterprise Edition...
Jan 27, 2010 | Microsoft Visual Basic 6.0 for PC
Mar 18, 2009 | Microsoft Visual Basic 6.0 for PC
Feb 28, 2009 | Microsoft Visual Basic 6.0 for PC
Feb 11, 2009 | Microsoft Visual Basic 6.0 for PC
Nov 21, 2008 | Computers & Internet
Jan 22, 2008 | Computers & Internet
113 people viewed this question
Usually answered in minutes!