printing stringgrid

hi all, i would like to print stringgrid, what i have do not make job correctly, my grid have linefeed and cariage return in some cells (#13#10), and the procedure i have dont not make it just making some square,, if someone can help me it would appreciate.....

thanks you
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

popyAuthor Commented:
me be someone would like have to code i already have there is the print but dont making linefeed and cariage return

procedure PrintGrid(sGrid: TStringGrid; sTitle: String);
 X1, X2 : Integer;
 Y1, Y2 : Integer;
 TmpI   : Integer;
 F      : Integer;
 TR     : TRect;
 Printer.Canvas.Font.Name:='Times New Roman';
 Printer.Canvas.Font.Style:=[fsBold, fsUnderline];
 Printer.Canvas.TextOut(0, 100, Printer.Title);
 For F:=1 to sGrid.ColCount-1 do begin
   For TmpI:=0 to (F-1) do
   For TmpI:=1 to F do
   TR:=Rect(X1, Y1, X2-30, Y2);
   Printer.Canvas.TextRect(TR, X1+50, 350, sGrid.Cells[F, 0]);
   For TmpI:=1 to sGrid.RowCount-1 do begin
     TR:=Rect(X1, Y1, X2-30, Y2);
     Printer.Canvas.TextRect(TR, X1+50, Y1+50, sGrid.Cells[F, TmpI]);
Here a nice object that i found which will help you:

look for...
TObjectPrinter V2.0.7

Download the version of delphi you are using and simple as:

With ObjectPrinter1 do

Peace Scay7

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
popyAuthor Commented:
Wow, exactly what i looking for

thanks alot
popyAuthor Commented:
i have a question

  i would like to bypass the preview, can i..???
Yes you should beable to in the options menu...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.