Go Premium for a chance to win a PS4. Enter to Win


Printer Object

Posted on 2000-02-25
Medium Priority
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.
Question by:ricpat
  • 2

Accepted Solution

paulstamp earned 150 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.

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

877 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