Link to home
Start Free TrialLog in
Avatar of andcu
andcu

asked on

VS Printer control

When using the VSPrinter control I can't manage to:

  - Centre header text yet have it aligned to the left.
  - Place a picture in the header part of the page.
  - Position a table horizontally.  I can vertically, but it is too far over to the right.
Avatar of mark2150
mark2150

How do you simultaneously have text centered and aligned to the left? These are mutually exclusive options.

M
Can you post a sample routine?
Avatar of andcu

ASKER

What I mean is have it in the middle of the page but left-justified.  Does that make more sense.  Like this:

                  Andrew
                  Experts-Exchange
                  USA

It currently looks more like this.


                       Andrew
                  Experts-Exchange
                        USA

Do you see what I mean now?
That's just INDENTING, not centering. Move the left margin or simply move over a fixed amount of space on each line.

M
Avatar of andcu

ASKER

mark2150.  Thanks.  I have managed to get in contact with other sources now in reference to my problem.  I have managed to come up with ways to acheive what I needed to.
ASKER CERTIFIED SOLUTION
Avatar of mdougan
mdougan
Flag of United States of America image

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
Avatar of andcu

ASKER

Your answer is good.

Your answer does not (I don't think) allow the Picture to appear on subsequent pages i.e. only the first.  It wasn't quite the sort of standard that I needed.  It would have helped loads though
Thanks, glad you found your solution (even though from other sources).  I see now your difficulty in getting the picture to print in the header was not so much getting it to print there, but getting it to print there for every page.  

I don't know how you're formatting your report, if you're doing it one page at a time, or letting the VSPrinter break the pages.  However, if you are formatting each page of the report, then you can break the page by issuing the vsPrinter.NewPage command, and then you'd repeat the code for printing the graphic in the top of the page.

Otherwise, the printer control has a NewPage event, and you could put the code for printing the graphic in:

Private Sub vsPrinter_NewPage()

End Sub

Maybe Videosoft can recommend alternative ways.  They may have a FAQ or Message Board at www.VideoSoft.com
Avatar of andcu

ASKER

That is exactly what I did!!  Excellent.
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.

This is the Community Support link, if help is needed, along with the link to All Topics since many new ones were recently added.

https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
https://www.experts-exchange.com/jsp/zonesAll.jsp
 
Thanks,
Moondancer
Moderator @ Experts Exchange