In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

How can i use a pre-printed invoice and pass field info on it ?

Xailer professional forum in English
Responder
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por Xailer »

Hello to all
I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
then info must be passed on it based on a database fields, and finally 3
copies of the invoice must be printed.
Is it possible to do this?
Any help would be appreciated
TIA
Dionisis
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por notengo »

Dionisis,
if I am not wrong the TPicture component supports TIF files so maybe you
could try something like:
oTIF := TPicture():Create( "file.tif" )
In your printing routine:
oPrinter:oCanvas:DrawPicture( { 0, 0, oTIF:nWidth, oTIF:nHeight }, oTIF )
And then print the fields where you need them with
oPrinter:oCanvas:TextOut( ... )
Regards,
José Lalí­n
notengo
Mensajes: 417
Registrado: Vie Oct 12, 2007 1:29 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por notengo »

Dionisis,
if I am not wrong the TPicture component supports TIF files so maybe you
could try something like:
oTIF := TPicture():Create( "file.tif" )
In your printing routine:
oPrinter:oCanvas:DrawPicture( { 0, 0, oTIF:nWidth, oTIF:nHeight }, oTIF )
And then print the fields where you need them with
oPrinter:oCanvas:TextOut( ... )
Regards,
José Lalí­n
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por Xailer »

Many Thanks Josi
As usual 100% CORRECT, now the positions calculations remain only.
Best Regards
Dionisis
Ο "José Lalí­n" <notengo@correo.com> έγραψε στο μήνυμα
news:498caa7b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>
> Dionisis,
>
> if I am not wrong the TPicture component supports TIF files so maybe you
> could try something like:
>
> oTIF := TPicture():Create( "file.tif" )
>
> In your printing routine:
>
> oPrinter:oCanvas:DrawPicture( { 0, 0, oTIF:nWidth, oTIF:nHeight }, oTIF )
>
> And then print the fields where you need them with
> oPrinter:oCanvas:TextOut( ... )
>
> Regards,
> José Lalí­n
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por Xailer »

Many Thanks Josi
As usual 100% CORRECT, now the positions calculations remain only.
Best Regards
Dionisis
Ο "José Lalí­n" <notengo@correo.com> έγραψε στο μήνυμα
news:498caa7b$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>
> Dionisis,
>
> if I am not wrong the TPicture component supports TIF files so maybe you
> could try something like:
>
> oTIF := TPicture():Create( "file.tif" )
>
> In your printing routine:
>
> oPrinter:oCanvas:DrawPicture( { 0, 0, oTIF:nWidth, oTIF:nHeight }, oTIF )
>
> And then print the fields where you need them with
> oPrinter:oCanvas:TextOut( ... )
>
> Regards,
> José Lalí­n
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por g.s.rogers »

I am trying the same thing with a .jpg form. I can draw it, but it always
prints at about 1/4 the size I want it to print. I've played with :lScalable
and :nHeight and :nWidth, but it doesn't seem to matter what values I assign
to those properties -- the output is the same. If I print the .jpg file
itself, it prints over the whole page.
What am I missing?
TIA,
Gary
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:[email=498ca75f@svctag-j7w3v3j....]498ca75f@svctag-j7w3v3j....[/email]
>
> Hello to all
> I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
> then info must be passed on it based on a database fields, and finally 3
> copies of the invoice must be printed.
>
> Is it possible to do this?
>
> Any help would be appreciated
>
> TIA
> Dionisis
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por g.s.rogers »

I am trying the same thing with a .jpg form. I can draw it, but it always
prints at about 1/4 the size I want it to print. I've played with :lScalable
and :nHeight and :nWidth, but it doesn't seem to matter what values I assign
to those properties -- the output is the same. If I print the .jpg file
itself, it prints over the whole page.
What am I missing?
TIA,
Gary
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:[email=498ca75f@svctag-j7w3v3j....]498ca75f@svctag-j7w3v3j....[/email]
>
> Hello to all
> I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
> then info must be passed on it based on a database fields, and finally 3
> copies of the invoice must be printed.
>
> Is it possible to do this?
>
> Any help would be appreciated
>
> TIA
> Dionisis
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por g.s.rogers »

After additional experimentation, I found that when the coordinates for the
DrawPicture() method is mmHIENGLISH, the measurements are not in 10ths of an
inch as the documentation says. For my picture of a form to be printed
correctly on an 8.5" x 11" page, the coordinates of 136,210,5354,6970 seem
to most accurately reproduce the form. Also, TPicture:nZoomH and
TPicture:nZoomV are not recognized as valid properties, resulting in a
runtime error if used.
Gary
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:[email=4995cbb9@svctag-j7w3v3j....]4995cbb9@svctag-j7w3v3j....[/email]
>I am trying the same thing with a .jpg form. I can draw it, but it always
>prints at about 1/4 the size I want it to print. I've played with
>:lScalable and :nHeight and :nWidth, but it doesn't seem to matter what
>values I assign to those properties -- the output is the same. If I print
>the .jpg file itself, it prints over the whole page.
>
> What am I missing?
> TIA,
> Gary
>
> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
> news:[email=498ca75f@svctag-j7w3v3j....]498ca75f@svctag-j7w3v3j....[/email]
>>
>> Hello to all
>> I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
>> then info must be passed on it based on a database fields, and finally
>> 3 copies of the invoice must be printed.
>>
>> Is it possible to do this?
>>
>> Any help would be appreciated
>>
>> TIA
>> Dionisis
>
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por g.s.rogers »

After additional experimentation, I found that when the coordinates for the
DrawPicture() method is mmHIENGLISH, the measurements are not in 10ths of an
inch as the documentation says. For my picture of a form to be printed
correctly on an 8.5" x 11" page, the coordinates of 136,210,5354,6970 seem
to most accurately reproduce the form. Also, TPicture:nZoomH and
TPicture:nZoomV are not recognized as valid properties, resulting in a
runtime error if used.
Gary
"Gary S. Rogers" <g.s.rogers@att.net> wrote in message
news:[email=4995cbb9@svctag-j7w3v3j....]4995cbb9@svctag-j7w3v3j....[/email]
>I am trying the same thing with a .jpg form. I can draw it, but it always
>prints at about 1/4 the size I want it to print. I've played with
>:lScalable and :nHeight and :nWidth, but it doesn't seem to matter what
>values I assign to those properties -- the output is the same. If I print
>the .jpg file itself, it prints over the whole page.
>
> What am I missing?
> TIA,
> Gary
>
> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
> news:[email=498ca75f@svctag-j7w3v3j....]498ca75f@svctag-j7w3v3j....[/email]
>>
>> Hello to all
>> I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
>> then info must be passed on it based on a database fields, and finally
>> 3 copies of the invoice must be printed.
>>
>> Is it possible to do this?
>>
>> Any help would be appreciated
>>
>> TIA
>> Dionisis
>
Bingen Ugaldebere
Mensajes: 1310
Registrado: Mié Sep 26, 2007 7:12 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por Bingen Ugaldebere »

It?s very easy using FastReports, I've put a Scanned Emf over the page
(fiscal form) and visually filled the fields over the page.
Finally I tells FastReport to not print the Emf on printer only at
Screen Preview.
Very easy and really fast.
Regards.
Bingen Ugaldebere
Mensajes: 1310
Registrado: Mié Sep 26, 2007 7:12 pm

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por Bingen Ugaldebere »

It?s very easy using FastReports, I've put a Scanned Emf over the page
(fiscal form) and visually filled the fields over the page.
Finally I tells FastReport to not print the Emf on printer only at
Screen Preview.
Very easy and really fast.
Regards.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por ignacio »

Gary,
Could you try to use mmHIMETRICS and see if it works that way? TIA.
Please send us a small sample that reproduces your error.
Regards,
--
Ignacio Ortiz de Zuniga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Gary S. Rogers" <g.s.rogers@att.net> escribio en el mensaje
news:4996de52$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> After additional experimentation, I found that when the coordinates for
> the DrawPicture() method is mmHIENGLISH, the measurements are not in 10ths
> of an inch as the documentation says. For my picture of a form to be
> printed correctly on an 8.5" x 11" page, the coordinates of
> 136,210,5354,6970 seem to most accurately reproduce the form. Also,
> TPicture:nZoomH and TPicture:nZoomV are not recognized as valid
> properties, resulting in a runtime error if used.
>
> Gary
>
>
>
> "Gary S. Rogers" <g.s.rogers@att.net> wrote in message
> news:[email=4995cbb9@svctag-j7w3v3j....]4995cbb9@svctag-j7w3v3j....[/email]
>>I am trying the same thing with a .jpg form. I can draw it, but it always
>>prints at about 1/4 the size I want it to print. I've played with
>>:lScalable and :nHeight and :nWidth, but it doesn't seem to matter what
>>values I assign to those properties -- the output is the same. If I print
>>the .jpg file itself, it prints over the whole page.
>>
>> What am I missing?
>> TIA,
>> Gary
>>
>> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
>> news:[email=498ca75f@svctag-j7w3v3j....]498ca75f@svctag-j7w3v3j....[/email]
>>>
>>> Hello to all
>>> I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
>>> then info must be passed on it based on a database fields, and finally
>>> 3 copies of the invoice must be printed.
>>>
>>> Is it possible to do this?
>>>
>>> Any help would be appreciated
>>>
>>> TIA
>>> Dionisis
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

How can i use a pre-printed invoice and pass field info on it ?

Mensaje por ignacio »

Gary,
Could you try to use mmHIMETRICS and see if it works that way? TIA.
Please send us a small sample that reproduces your error.
Regards,
--
Ignacio Ortiz de Zuniga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Gary S. Rogers" <g.s.rogers@att.net> escribio en el mensaje
news:4996de52$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> After additional experimentation, I found that when the coordinates for
> the DrawPicture() method is mmHIENGLISH, the measurements are not in 10ths
> of an inch as the documentation says. For my picture of a form to be
> printed correctly on an 8.5" x 11" page, the coordinates of
> 136,210,5354,6970 seem to most accurately reproduce the form. Also,
> TPicture:nZoomH and TPicture:nZoomV are not recognized as valid
> properties, resulting in a runtime error if used.
>
> Gary
>
>
>
> "Gary S. Rogers" <g.s.rogers@att.net> wrote in message
> news:[email=4995cbb9@svctag-j7w3v3j....]4995cbb9@svctag-j7w3v3j....[/email]
>>I am trying the same thing with a .jpg form. I can draw it, but it always
>>prints at about 1/4 the size I want it to print. I've played with
>>:lScalable and :nHeight and :nWidth, but it doesn't seem to matter what
>>values I assign to those properties -- the output is the same. If I print
>>the .jpg file itself, it prints over the whole page.
>>
>> What am I missing?
>> TIA,
>> Gary
>>
>> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
>> news:[email=498ca75f@svctag-j7w3v3j....]498ca75f@svctag-j7w3v3j....[/email]
>>>
>>> Hello to all
>>> I need to "draw" a pre-printed invoice ( the invoice is on a tif file),
>>> then info must be passed on it based on a database fields, and finally
>>> 3 copies of the invoice must be printed.
>>>
>>> Is it possible to do this?
>>>
>>> Any help would be appreciated
>>>
>>> TIA
>>> Dionisis
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder