Página 1 de 1

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

Publicado: Vie Feb 06, 2009 10:10 pm
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

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

Publicado: Vie Feb 06, 2009 10:21 pm
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

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

Publicado: Vie Feb 06, 2009 10:21 pm
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

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

Publicado: Sab Feb 07, 2009 10:05 am
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

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

Publicado: Sab Feb 07, 2009 10:05 am
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

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

Publicado: Vie Feb 13, 2009 8:36 pm
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

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

Publicado: Vie Feb 13, 2009 8:36 pm
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

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

Publicado: Sab Feb 14, 2009 4:07 pm
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
>

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

Publicado: Sab Feb 14, 2009 4:07 pm
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
>

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

Publicado: Lun Feb 16, 2009 8:39 am
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.

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

Publicado: Lun Feb 16, 2009 8:39 am
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.

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

Publicado: Mar Feb 17, 2009 12:01 pm
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
>>
>
>

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

Publicado: Mar Feb 17, 2009 12:01 pm
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
>>
>
>