Recent

Author Topic: Wince 4.1 printing  (Read 17119 times)

abrito

  • Jr. Member
  • **
  • Posts: 69
Wince 4.1 printing
« on: October 15, 2010, 11:00:53 am »
I have a Casio IT3000 Terminal with printer
any way to print a pdf with lazarus?

I use powerpdf to make a pdf.

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Wince 4.1 printing
« Reply #1 on: October 16, 2010, 07:38:25 pm »
Is your printer have serial port (COM ports)?
Is it use ESCPOS?
Can print your pdf on a Canvas?

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #2 on: October 16, 2010, 09:05:49 pm »
I can print on canvas.
I can print ESC POS.
But It has not a com port.
it has a standar driver and a specific driver.
the standard driver is a gdi driver for win ce from Casio.


How can I print PDF on CANVAS?

CpStatrdoc, CPstartpage, CPendpage, CPenddoc, and I can use drawtext etc.. etc..

from powerpdf how can i send canvas page to print on printer canvas??

Thanks

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Wince 4.1 printing
« Reply #3 on: October 16, 2010, 09:19:14 pm »
I meant if your printer support ESC/POS and there is a COM port to your printer
you can see
http://sourceforge.net/projects/minilib/
in
\MiniComm\printers\escpos
I can make a demo for you to understand it.

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #4 on: October 16, 2010, 09:23:01 pm »
Don't have com port.
I get the printer handle like this

CpOpenPrinter('BuiltIn','IT3000 BuiltIn',@hprinter);

Can I send Pdf to canvas?

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Wince 4.1 printing
« Reply #5 on: October 16, 2010, 09:30:37 pm »
Hmm
CpCreateDC will create a handle of DC you can assign it to a Canvas
dc := CpCreateDC(...
Canvas.Handle := dc
Now if you can print your pdf to this canvas you will success, tell if you do ;)

May be you can create new topic for that (How to print pdf to Canvas)

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #6 on: October 16, 2010, 09:34:11 pm »
thanks

I will try to explore powerpdf to see if i can assign the canvas.

and i will start a new topic.
« Last Edit: October 16, 2010, 09:35:54 pm by abrito »

Zaher

  • Hero Member
  • *****
  • Posts: 679
    • parmaja.org
Re: Wince 4.1 printing
« Reply #7 on: October 16, 2010, 09:46:59 pm »
Those function Cp...  similer to Printer API functions, i am not sure if it possible to create a Internal printer to add it to Printers object, it is need to look at it.

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #8 on: October 16, 2010, 09:49:59 pm »
In the manuals, said is standart print driver.

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #9 on: October 25, 2010, 10:36:54 am »

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Re: Wince 4.1 printing
« Reply #10 on: December 09, 2010, 01:10:56 pm »
I have a Casio IT3000 Terminal with printer
any way to print a pdf with lazarus?

I use powerpdf to make a pdf.

Casio IT3000 don't print COMPORT

You MUST Use Casio IT3000 Printer SDK

I Don't know have it Pascal interface
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #11 on: December 09, 2010, 01:51:19 pm »
I create pascal interface for It3000 print SDK

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Re: Wince 4.1 printing
« Reply #12 on: December 09, 2010, 02:00:59 pm »
I create pascal interface for It3000 print SDK

Share it :D
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Wince 4.1 printing
« Reply #13 on: December 09, 2010, 02:46:23 pm »
Do You have Casio IT3000, terminal?

SONFEDAI

  • Jr. Member
  • **
  • Posts: 55
Re: Wince 4.1 printing
« Reply #14 on: December 09, 2010, 02:48:59 pm »
Do You have Casio IT3000, terminal?

Sometimes programming with Casio IT 3000

But programming with Microsoft Visual C++ 2008

If i'm using firebird on Wince, i want develop with lazarus
I'm using
   Lazarus: 0.9.3.1
   Date: 2011-11-05
   FPC: 2.5.1
   SVN Ver.: 29060

 

TinyPortal © 2005-2018