Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

using a image from file system

using a image from file system

using a image from file system


Could anyone of you please tell me if there is a command in PCL to load an image from my file system?

I know that other options to add an image is possible (converting a JPG to PCL for example), but my in my case the image (in an appropriated format) is ready to use.



RE: using a image from file system

First, the only appropriate format is a PCL image.

As such, there is no PCL command to download an image to your printer. It is the responsibility of the application to provide a timely download of the image when needed.

Very often it is advantageous to configure the images as macrod and direct them all to the printer at the head of the job, and then call them as needed using the appropriate macro ID number later when needed.

What OS are you using? We really ne more information as to what you are after.

Jim Asman

RE: using a image from file system

Actually, I'm trying to send for printer an image available on the file system. In general, the function of my system has three parameters: the first one is the fileName; and the second and third, the PCLCommand. The first parameter, for example, can be typed by user.

Something like that:

string printImage(string FileName, string PCLCommandBegin, string PCLCommandEnd)
return (PCLCommandBegin + FileName + PCLCommandEnd);

For example:
<esc>&l#S", where # could be a full path to access an image file (C:\myFolder\myImage.bmp)

I've read something related to macro, but I didn't find the correct command to add the file (name and path). There are commands to define position, resolution, raster image, text, etc, but I'm not sure if there is a command to insert an file name. Could you show me any example about it?

Windows XP is my OS.


RE: using a image from file system

>> ...  I'm not sure if there is a command to insert an
>> file name ...

There is no such command in PCL.

If the 'file' you want to use is already a PCL5 raster image format, then you just need to copy the contents of the specified file to the target printer port.

Note that if the image file DOES contain a PCL5 raster image, then you will only be able to 'view' it on screen if you have a suitable PCL5 parser/interpreter (e.g. SwiftView, PCLWorks, etc.)

But if the image is not in PCL raster image format (e.g. it is a .BMP, or .PNG, or .TIFF, or .JPG file) then you'll have to convert it first to PCL5 raster image format - this is not a trivial exercise, although there are probably quite a few library routines available to assist in this.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close