Link to home
Start Free TrialLog in
Avatar of RandyEdwards
RandyEdwards

asked on

Printing in VB using Word

I have an entry screen where users enter there data and created another form for the report generated.  However, the printform method will not print the entire form.  How do I pass the data from VB to a template in word in order to print the report????
Avatar of csameer1
csameer1

Hi,
You could use just a word macro to do this.Then your printout will look exactly like your regular word report.

But if you need to use VB you can print text to the printer using

Printer.NewPage
Printer.Print strStrings
Printer.PaintPicture(,....)
etc
Printer.EndDoc
ASKER CERTIFIED SOLUTION
Avatar of Marine
Marine

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this sample is using FlexGrid which data is being taken and imported into Word. To import something into work you have to use TypeText method
to print it use PrintOut on the Application ojbect.
Randy questions like this are usually 50pts.