[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Printing Fonts and Positions

Posted on 1998-06-17
2
Medium Priority
?
177 Views
Last Modified: 2013-12-03
how do you use fonts, place things on the page and change the size of the fonts when using the printer?...Basically all I need are examples of each... I can probly figure it out from there.
0
Comment
Question by:timot
2 Comments
 

Author Comment

by:timot
ID: 1463589
.....I use VB4.
0
 
LVL 1

Accepted Solution

by:
redbaron082997 earned 800 total points
ID: 1463590
private sub printfont()
printer.scalemode = 5 'inches
printer.print "" ' initialize printer
printer.fontname = "Arial"
printer.fontsize = 12
printer.currentx = 2
printer.currenty = 2
printer.print "Line1"
printer.print "line2"
printer.fontsize = 24
printer.print "line3"
printer.enddoc
end sub
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question