Solved

Printer Object

Posted on 2000-02-25
2
137 Views
Last Modified: 2010-05-02
Is there an easiest way to align each column not using currentx while extracting files from a database and outputted to a hard copy that uses printer object and by not using spaces or tabs to align columns.
0
Comment
Question by:ricpat
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
paulstamp earned 50 total points
ID: 2559156
You can use the rset method with a fixed width font, ie

Set the printer object's font to Courier and then use something like :

    sBuffer = space$(32)
   
    Rset sBuffer = myrecordset!mystring

    printer.print sBuffer

Rset effectively right aligns once string into another string.
0
 
LVL 3

Expert Comment

by:paulstamp
ID: 2559281
Sorry.. my answer was meant to be a comment... if this solves your problem please press "accept comment as answer"
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
using Access 8 68
SLMGR Switches Are Not Working On KMS Host 3 94
VBA Shell can't Find Word document 11 94
VB6 - Scroll Mouse wheel on Picturebox 13 44
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

803 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