?
Solved

Entering Text on Richedit

Posted on 2003-02-26
9
Medium Priority
?
225 Views
Last Modified: 2013-11-22
I have a SCANNED INVOICE COPY, all i want to do is making it computerized. i want to input information from the invoice using the computer, ON PRINTING, i will use the invoice paper and print my inputted text.the problem is that i want to align my inputed text to where it should belong in the invoice paper. how could i do that.

anybody here knows about a transparent TRichedit/TMemo so that i can put my SCANNED INVOICE AT THE BACK and just align the text accordingly.

and

anybody here knows how to align my text pixel by pixel (for any font size or type) in the richedit/memo. so that i can just put x and y values to allocate the text to where i want to place.

like:

procedure PutTheText(xAxis,yAxis,New_Text);

anybody can finish this procedure?

0
Comment
Question by:ryan_sabarre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 

Author Comment

by:ryan_sabarre
ID: 8029920
anybody can help me please
0
 

Author Comment

by:ryan_sabarre
ID: 8029950
by the way can you make the richedit/memo margins to 0 so that i can print freely without any margin
0
 
LVL 6

Expert Comment

by:zebada
ID: 8030439
To do pixel alignment I would not use a richedit, instead do something like this:

if ( printerDialog.Execute ) then try
  Printer.BeginDoc;
  ...
  In here simply :
  1. Set the font using:
     Printer.Canvas.Font.....
 
  2. Write to the Printer's Canvas using
     Printer.Canvas.TextOut(x,y,"your text here");
  ...
  Printer.EndDoc;
except on
  e:Exception do
  begin
    Printer.Abort;
    ShowMessage(e.Message);
  end;
end;

You can also print lines, graphics and images as well - simply by rendering them onto the printer's canvas.

Regards
Paul

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 2

Expert Comment

by:Tvigep
ID: 8032433
Indeed use the printers canvas, and to check what has to go where I would first use a regular canvas (like a forms canvas) so you can check what has to go where. If you load the scanned document as bitmap, you can then use Form.Canvas.TextOut to place your texts, and tweak it so that you have the pixel values exactly right.

But wouldn't it be easier to simply recreate the original invoice document, instead of using a scanned version? shouldn't be that difficult, I assume, unless it contains logo's you need.

HTH,
Stef
0
 

Author Comment

by:ryan_sabarre
ID: 8039373
sorry folks i already found a component that does that one. Its an ALrep component, which i can easily drag and drop text to where i want to put in the paper.
0
 

Expert Comment

by:CleanupPing
ID: 9317046
ryan_sabarre:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 2

Expert Comment

by:Tvigep
ID: 9317318
My guess is this one can be closed.
" i already found a component that does that one" tells me he just left this question sitting without closing or accepting an answer.

0
 
LVL 10

Expert Comment

by:kacor
ID: 9981591
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
       PAQ and refund points
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Some days and here is the Christmas Time. I wish good luck and good health for you all and for your loved ones

kacor
EE Cleanup Volunteer
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10007392
PAQed, with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question