Computers & Internet Logo

Related Topics:

Posted on Mar 18, 2008

To fix the page layout to

Hello Sir,
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

1 Answer

Anonymous

Level 1:

An expert who has achieved level 1.

Corporal:

An expert that hasĀ over 10 points.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 11 Answers
  • Posted on Mar 19, 2008
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Corporal:

An expert that hasĀ over 10 points.

Problem Solver:

An expert who has answered 5 questions.

Joined: Mar 19, 2008
Answers
11
Questions
0
Helped
1608
Points
15

Oomar,

Using Word with VB6, I show how you set the page size to A5:

Sub AutomateWord()
' 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.
objWD.Documents.Add
' Add some text.
objWD.Selection.TypeText "This is some text."
'Set Page Size
objWD.ActiveDocument.PageSetup.PaperSize = wdPaperA5
' Save the document.
objWD.ActiveDocument.SaveAs FileName:="mydoc.doc"
' Quit Word.
objWD.Quit
' Clear the variable from memory.
Set objWD = Nothing
End Sub

Hope this helps!

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

Printing from my HP laptop all the printers will only print A5 size not fit to page A4. Have another computer and printers will print fit to page A$

Have you checked the printer settings when you get the print screen?
Most likely it is set up for A5. That or the page layout of the document is set for A5.
0helpful
1answer

Ehow co uk

Hello Linda,

The problem is not with the printer but with your printer settings or preferences. You have to configure the margin or layouts and then previews it first before printing.

So either go to print preview to setup the layout of what you want to print, by making your printing big depending on how you want it or you click on properties button on your printer window to setup the layout of the internet page.

I hope this has helped you.

Thank you.
0helpful
1answer

How to print one document on mutiple trays

Once you have installed and setup a multi-tray printer you might like to try to print a document to different printer trays. Open a word document and create a two page document.
  • Select your new printer under file->Print (if it's not the default)
  • Click the page layout tab
  • Click the small triangle at the bottom right
  • Open the page setup dialog box and click the page Paper Tab
  • Choose a tray for the first page and other pages. Close the dialog box and print.
0helpful
1answer

Can I print on both sides of the page

Here are the instructions for duplex printing.

The duplex printing function allows you to print data on both sides of a sheet of paper.

The procedure for performing duplex printing is as follows:

1. Open the printer driver setup window, and check the Duplex Printing check box on the Page Setup tab.

2. Select Normal-size Printing (or Fit-to-Page Printing, Scaled Printing or Page Layout Printing) from the Page Layout list.

3. Specify Staple Side.

The printer analyzes the Orientation and Page Layout settings, and automatically selects the best staple position. Check the Staple Side setting. If you want to change the setting, select another value from the list.

4. If necessary, click Specify Margin... and set the Margin width.

5. Click OK.

sub.gifIf a media type other than Photo Paper Plus Double Sided is selected for Media Type on the Main tab:

When you execute print, the document will be printed on one side of a sheet of paper. When printing is complete, reload paper according to the displayed message and then click OK. The document will be printed on the opposite side.

sub.gifIf Photo Paper Plus Double Sided is selected for Media Type on the Main tab:

When you execute print, the document will be printed front and back alternately for one sheet at a time. Load the paper according to the displayed messages.
caution.gif Note

sub.gifDuplex Printing is unavailable when:

- A media type other than Plain Paper or Photo Paper Plus Double Sided is selected from the Media Type list.

- Poster Printing is selected from the Page Layout list.

sub.gifWhen Booklet Printing is selected from the Page Layout list, Duplex Printing and Staple Side appear grayed out and are unavailable.


You can download a users manual for your MX310 at

http://www.usa.canon.com/cusa/support/consumer/printers_multifunction/pixma_mx_series/pixma_mx310#BrochuresAndManuals

Please rate this solution. Thanks.

1helpful
1answer

Page setup office 2007 to A5

Open the MsWord - Click on the Page Layout tab on the Menu- On the Page Setup box - click Size and Select A5 from the drop down lists. Please refer to the pic below, 2654c3e.jpg Good luck....
0helpful
1answer

I loaded MS Office 2003 on a new laptop running Windows 7, only to find that Word opens as a blank page with no toolbars, rulers etc - only the writing area. Excell works ok

The Word 2003 Window When Word is first started, a new blank page titled Document1 is opened automatically. This is a fresh page where you can begin typing a new document.
  • At the top of the window is a row of menus, including File, Edit and View.
  • Below that row of menus is a row of buttons for various tools (collectively called the "toolbars") to use in creating and editing your document.
Layouts in Word 2003
Normal - Normal is the default Word 2003 view. It shows just the text that you are working on, without margins or header and footer information. It doesn't differentiate between different pages of text.
Web Layout - The Web Layout displays the document as if it were a web page
Print Layout - The Print Layout shows the entire page you are working on, including margins, header and footer information. It shows the layout of the text on the page the way it would be displayed if printed.
3helpful
2answers

Do pixma Mp610 support duplex printing

The MP610 does support duplex printing.

Duplex Printing
duplex.gif
The duplex printing function allows you to print data on both sides of a sheet of paper.
The procedure for performing duplex printing is as follows:
Performing automatic duplex printing
You can perform the duplex printing without having to turn over the paper.
1. Open the printer driver setup window, check the Duplex Printing check box, and confirm that Automatic is checked.
duplex1.gif
2. Select Normal-size Printing (or Fit-to-Page Printing, Scaled Printing or Page Layout Printing) from the Page Layout list.
3. When printing a document that has small margins, click Print Area Setup... and set the print area.
When you perform duplex printing, the print area of the document becomes slightly narrower than usual and the document may not fit on one page.
duplex2.gif
sub.gifTo print without reducing the page:
Select Use normal-size printing.
sub.gifTo reduce the page slightly during printing:
Select Use reduced printing.
4. Specify Staple Side.
The printer analyzes the Orientation and Page Layout settings, and automatically selects the best staple position. Check the Staple Side setting. If you want to change the setting, select another value from the list.
5. If necessary, click Specify Margin... and set the Margin width.
6. Click OK.
Duplex printing will be started.

Performing duplex printing manually
You can perform the duplex printing manually.
1. Check the Duplex Printing check box and uncheck the Automatic check box on the Page Setup tab.
duplex3.gif
2. Select Normal-size Printing (or Fit-to-Page Printing, Scaled Printing or Page Layout Printing) from the Page Layout list.
3. Specify Staple Side.
The printer analyzes the Orientation and Page Layout settings, and automatically selects the best staple position. Check the Staple Side setting. If you want to change the setting, select another value from the list.
4. If necessary, click Specify Margin... and set the Margin width.
5. Click OK.
sub.gifIf a media type other than Photo Paper Plus Double Sided is selected for Media Type on the Main tab:
When you execute print, the document will be printed on one side of a sheet of paper. When printing is complete, reload paper according to the displayed message and then click OK. The document will be printed on the opposite side.
sub.gifIf Photo Paper Plus Double Sided is selected for Media Type on the Main tab:
When you execute print, the document will be printed front and back alternately for one sheet at a time. Load the paper according to the displayed messages.
caution.gif Note sub.gifDuplex Printing is unavailable when:
- A media type other than Plain Paper, Photo Paper Plus Double Sided or Hagaki is selected from the Media Type list.
- Poster Printing is selected from the Page Layout list.
sub.gifWhen Booklet Printing is selected from the Page Layout list, Duplex Printing and Staple Side appear grayed out and are unavailable.
sub.gifAfter printing the front page, there is an ink drying wait time before starting to print the back page (Operation stops temporarily). Do not touch the paper during the time. You can change the Ink Drying Wait Time at Custom Settings on the Maintenance tab of the printer driver.
sub.gifWhen you perform the automatic duplex printing for Hagaki, print an address first and then print your message.
refer.gif Tip sub.gifIf you select Photo Paper Plus Double Sided for Media Type on the Main tab, the Duplex Printing check box on the Page Setup tab is not checked automatically. To perform duplex printing, check the Duplex Printing check box.
sub.gifIf the Media Type dialog box appears when performing borderless printing during duplex printing, select Plain Paper or Photo Paper Plus Double Sided.
sub.gifWhen performing the automatic duplex printing, do not use any plain paper smaller than A5. Also, do not select any type of paper other than Plain Paper, Photo Paper Plus Double Sided or Hagaki at Media Type.
sub.gifPhoto Paper Plus Double Sided is highly recommended for printing photographs on both sides of a page.
sub.gifIf the back side of the paper becomes smudged during duplex printing, perform Bottom Plate Cleaning in the Maintenance tab.
0helpful
1answer

Page setup for printing

Hi,
In the file document you will find the tab called FILE. Click on it, and go to page setup. There you can change the edit the border or select the type of printing to A5, A3 etc.. And you can even also select landscape or portable. Thank you.....
0helpful
1answer

Printing 2 pages on landscape document

Usually if you see the page in the Publisher window is already landscape, it will go landscape in the Printpreview and also in the print out. I just try to imagine what is your problem.
If I am not mistaken, this is what you did:
You have two "small" pages (maybe A5??) and you want to print it in one page of A4. Of course the A4 should be landscape.
Publisher does not have the facility to set 2 pages A5 in one A4 like in Microsoft Word.
The easiest way is just create a new page with A4, then copy the 2 pages (or you called it flyers) and paste it in that A4 landscape page.
Publisher can do print 2 pages A5 in one sheet A4 but the arrangement is as booklet. You can see the choices in File --> Page Setup --> tab "Layout" --> scroll the Publication type.
I do print 2 pages A5 in one sheet with many variations using addition software named "Clickbook".
Let me know if I m wrong in interpret your problem.
Not finding what you are looking for?

146 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...