Mega Search
23.2 Million


Sign Up

Make a donation  
Print a document or graphic [Edit]  
News Group: embarcadero.public.cppbuilder.language.cpp

Hi

I don't know if I am in the right section but :

I would like to know...

1. How do I print a textbox text on printer
2. How do I get text in a file by reading it and then print that text
3. How do I for example draw a square by code and print that square

Thank you :)

Edited by: Pierre Zarzour on Dec 29, 2014 7:36 AM

Edited by: Pierre Zarzour on Dec 29, 2014 7:36 AM

Edited by: Pierre Zarzour on Dec 29, 2014 7:36 AM

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2014, at 7:40 AM EST
From: Pierre Zarzour
 
Re: Print a document or graphic [Edit] [Edit]  
News Group: embarcadero.public.cppbuilder.language.cpp
Also,

 wrote in message news:707277@forums.embarcadero.com...
> Hi
>
> Just before I break my head to learn that... lol
>
> Will this code works on c++ builder or there is some differences...
>
> Because I want to buy c++ builder and I would like to know how to do this 
> with the codes working :)

Don't know what you plan on doing, but if it has to do with mobile device 
applications. then that example may be totally useless, as the mobile 
applications use a different framework.

I have not worked with the mobile application framework at all, so cannot 
comment on whether there's any reasonable applicability of the referenced 
example or not, but have my suspicions it is probably quite different.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Dec-2014, at 6:24 AM EST
From: david hoke
 
Re: Print a document or graphic [Edit] [Edit]  
News Group: embarcadero.public.cppbuilder.language.cpp
 wrote in message news:707277@forums.embarcadero.com...
> Hi
>
> Just before I break my head to learn that... lol
>
> Will this code works on c++ builder or there is some differences...

No, it won't work directly.

c++ builder uses c++ as its language.

Delphi is object-pascal based.

The CONCEPTS of printing in VCL, available to both C++ and Delphi users, 
should be the same in both.

The actual language syntax is significantly different.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Dec-2014, at 6:06 AM EST
From: david hoke
 
Re: Print a document or graphic [Edit] [Edit]  
News Group: embarcadero.public.cppbuilder.language.cpp
Hi

Just before I break my head to learn that... lol

Will this code works on c++ builder or there is some differences...

Because I want to buy c++ builder and I would like to know how to do this with the codes working :)

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2014, at 3:02 PM EST
From: Pierre Zarzour
 
Re: Print a document or graphic [Edit]  
News Group: embarcadero.public.cppbuilder.language.cpp
> {quote:title=david hoke wrote:}{quote}
>  wrote in message news:707213@forums.embarcadero.com...
> > Hi
> >
> > I don't know if I am in the right section but :
> >
> > I would like to know...
> >
> > 1. How do I print a textbox text on printer
> > 2. How do I get text in a file by reading it and then print that text
> > 3. How do I for example draw a square by code and print that square
> >
> 
> The general idea, is that you force the various controls to draw to a 
> printer canvas, instead of a screen canvas.
> 
> Perhaps this link will provide help, sorry its not builder directly but 
> delphi:
> http://www.efg2.com/Lab/OtherProjects/PrinterDemo2.htm
> 
> Search the page for PrinterDemo2.ZIP link to archive containing the delphi 
> project and source to review locally.



Thanks... I am looking at it !

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2014, at 2:18 PM EST
From: Pierre Zarzour
 
Re: Print a document or graphic [Edit]  
News Group: embarcadero.public.cppbuilder.language.cpp
 wrote in message news:707213@forums.embarcadero.com...
> Hi
>
> I don't know if I am in the right section but :
>
> I would like to know...
>
> 1. How do I print a textbox text on printer
> 2. How do I get text in a file by reading it and then print that text
> 3. How do I for example draw a square by code and print that square
>

The general idea, is that you force the various controls to draw to a 
printer canvas, instead of a screen canvas.

Perhaps this link will provide help, sorry its not builder directly but 
delphi:
http://www.efg2.com/Lab/OtherProjects/PrinterDemo2.htm

Search the page for PrinterDemo2.ZIP link to archive containing the delphi 
project and source to review locally.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2014, at 9:15 AM EST
From: david hoke