• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 147
  • Last Modified:

Printer Object

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.
  • 2
1 Solution
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.
Sorry.. my answer was meant to be a comment... if this solves your problem please press "accept comment as answer"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now