RE: [U2] printing images through unidata

2005-09-27 Thread Karjala Koponen
You do have to disallow modification of the print string by the database or
spooler.  I use 'SETPTR ':lpu:',1024,80,,,1,NFMT,dest ,BRIEF', where
lpu is the logical print unit.  The no format seems to work.  I've seen other
suggestions on this list for accomplishing the same.  I get errors (UniData
6.0.9 on Solaris 8) when I set the character per line > 1024, though  I should
probably increase the lines per page.

Karjala


>>> [EMAIL PROTECTED] 09/26/2005 5:02:58 PM >>>
Good question: I downloaded Tom's demo image and entered the 2 code
examples. The import went fine (I think) and what I get when I do a test
print is:

p10h12v0s0b4099T
1y3X Text next to logo 1
Text next to logo 2
Text next to logo 3
Text next to logo 4
Text next to logo 5
Text next to logo 6
Text next to logo 7
Text next to logo 8
Text next to logo 9
Text next to logo 10

This is better than the first attempt which refused to print (I caught a
typo). I'm not really a PCL 5 guy, I just happened to have the most
experience using it in my group...



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Karjala Koponen
> Sent: Monday, September 26, 2005 3:24 PM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] printing images through unidata
>
> I was able to use Tom Pellitieri's code successfully. I did have to
> reverse
> the output of rows to the printer, however, and I found it easier to use
> decipoints than PCL units. I also found that the pixel width of the
> imported
> image had to be a multiple of 32 (8 bits times 4 bytes).
>
> Are you having problems with the import of the image or printing it?
>
> Karjala
>
>
> >>> [EMAIL PROTECTED] 09/26/2005 1:42:54 PM >>>
> A while back someone wrote an article about how to convert a black and
> whit
> .BMP image to UD2 and print it on a laserjet using PCL 5 (Rastor graphics
> I
> believe). I'm trying to duplicate the guy's work and am not having any
> luck.
> Has anyone else been able to do this?
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] printing images through unidata

2005-09-26 Thread Bruce Nichol

Goo'day, again,

At 17:02 26/09/05 -0400, you wrote:


Good question: I downloaded Tom's demo image and entered the 2 code
examples. The import went fine (I think) and what I get when I do a test
print is:

p10h12v0s0b4099T
1y3X



Looks like there should be something like  ESC:'(s0'  (for example) in 
front of the "p10h" making ESC:'(s0p10h12v0s0b4099T'
the  ESC:'(s'  for a "font set", "0p"  standing for "fixed spacing", 
"proportional" being '1p' -  10h being "pitch", 12v being "height" - point 
size, 0s being "font style" - 0 = upright, 1 = italic, 4 = condensed, etc, 
0b = "stroke weight" - 0 = medium 3 = bold -3 = light, etc, 4099T = 
typeface..


and ESC:"*p" in front of the '1y3X' making ESC:"*p1y3X'  with ESC:'*p" = 
"position" and 1y = y-coordinate, 3X = x-coordinate.


Obey all the uppercase, lowercase in these strings PCL5 relying on an 
uppercase to denote the termination of the escape string



  Text next to logo 1
  Text next to logo 2
  Text next to logo 3
  Text next to logo 4
  Text next to logo 5
  Text next to logo 6
  Text next to logo 7
  Text next to logo 8
  Text next to logo 9
  Text next to logo 10

This is better than the first attempt which refused to print (I caught a
typo). I'm not really a PCL 5 guy, I just happened to have the most
experience using it in my group...



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Karjala Koponen
> Sent: Monday, September 26, 2005 3:24 PM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] printing images through unidata
>
> I was able to use Tom Pellitieri's code successfully.  I did have to
> reverse
> the output of rows to the printer, however, and I found it easier to use
> decipoints than PCL units.  I also found that the pixel width of the
> imported
> image had to be a multiple of 32 (8 bits times 4 bytes).
>
> Are you having problems with the import of the image or printing it?
>
> Karjala
>
>
> >>> [EMAIL PROTECTED] 09/26/2005 1:42:54 PM >>>
> A while back someone wrote an article about how to convert a black and
> whit
> .BMP image to UD2 and print it on a laserjet using PCL 5 (Rastor graphics
> I
> believe). I'm trying to duplicate the guy's work and am not having any
> luck.
> Has anyone else been able to do this?
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.7/112 - Release Date: 26/09/05




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.7/112 - Release Date: 26/09/05


Regards,

Bruce Nichol
Talon Computer Services
ALBURYNSW 2640
Australia

http://www.taloncs.com.au

Tel: +61 (0)411149636
Fax: +61 (0)260232119

If it ain't broke, fix it till it is! 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.7/112 - Release Date: 26/09/05
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] printing images through unidata

2005-09-26 Thread John Varney
Good question: I downloaded Tom's demo image and entered the 2 code
examples. The import went fine (I think) and what I get when I do a test
print is:

p10h12v0s0b4099T
1y3X  Text next to logo 1
  Text next to logo 2
  Text next to logo 3
  Text next to logo 4
  Text next to logo 5
  Text next to logo 6
  Text next to logo 7
  Text next to logo 8
  Text next to logo 9
  Text next to logo 10

This is better than the first attempt which refused to print (I caught a
typo). I'm not really a PCL 5 guy, I just happened to have the most
experience using it in my group...



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Karjala Koponen
> Sent: Monday, September 26, 2005 3:24 PM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] printing images through unidata
> 
> I was able to use Tom Pellitieri's code successfully.  I did have to
> reverse
> the output of rows to the printer, however, and I found it easier to use
> decipoints than PCL units.  I also found that the pixel width of the
> imported
> image had to be a multiple of 32 (8 bits times 4 bytes).
> 
> Are you having problems with the import of the image or printing it?
> 
> Karjala
> 
> 
> >>> [EMAIL PROTECTED] 09/26/2005 1:42:54 PM >>>
> A while back someone wrote an article about how to convert a black and
> whit
> .BMP image to UD2 and print it on a laserjet using PCL 5 (Rastor graphics
> I
> believe). I'm trying to duplicate the guy's work and am not having any
> luck.
> Has anyone else been able to do this?
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] printing images through unidata

2005-09-26 Thread Karjala Koponen
I was able to use Tom Pellitieri's code successfully.  I did have to reverse
the output of rows to the printer, however, and I found it easier to use
decipoints than PCL units.  I also found that the pixel width of the imported
image had to be a multiple of 32 (8 bits times 4 bytes).

Are you having problems with the import of the image or printing it?

Karjala


>>> [EMAIL PROTECTED] 09/26/2005 1:42:54 PM >>>
A while back someone wrote an article about how to convert a black and whit
.BMP image to UD2 and print it on a laserjet using PCL 5 (Rastor graphics I
believe). I'm trying to duplicate the guy's work and am not having any luck.
Has anyone else been able to do this?
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/