Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Delphi form movement after printing

Posted on 1998-11-15
5
Medium Priority
?
136 Views
Last Modified: 2010-04-04
I have a Delphi form that selects an operation and then prints a report. It works fine except that when it finishes printing, the whole form moves to the bottom of the screen with only about half of it showing. The form is set to be centered on the screen and that is what it does until after the printing is completed. I am using graphics on the report, but I am doing the same thing on other forms that work perfectly. Any idea what is happening and what to do to prevent it?
0
Comment
Question by:DeCordova
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:dwwang
ID: 1346918
Are you sure there is no statements causing the form to move?
0
 

Author Comment

by:DeCordova
ID: 1346919
If there are, I sure can't find them. What kinds of statements would cause the form to move? This happens to forms where I have some extensive graphics plotting lines, etc. no bitmaps. Could this have anything to do with it? I'm using Delphi 3 Standard Edition, by the way.

0
 
LVL 4

Expert Comment

by:dwwang
ID: 1346920
Could there be any statements that you used to control the printer or something like that, but forgot to use WITH ... do statements, so they actually affect the form?
0
 

Author Comment

by:DeCordova
ID: 1346921
Although you didn't have an answer for my problem, you got me to thinking in a different way. Here's what I found: I was using a variable "Top" to define the top of graphics lines on the page and I didn't declare it. Somehow Delphi let me get away with that because there must be a declaration somewhere in Delphi. When I used a different name for the variable and declared it that solved the problem. Thanks for your help.

0
 
LVL 4

Accepted Solution

by:
dwwang earned 200 total points
ID: 1346922
So would you mind I have the answer? :)
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

885 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