Solved

Delphi form movement after printing

Posted on 1998-11-15
5
130 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 100 total points
ID: 1346922
So would you mind I have the answer? :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is there a maximum column width (in pixels) in a TListView? 22 102
IExtractImage Delphi 14 201
Communication Between RC4 Delphi <-> PHP 3 100
Create a path if not exists 7 69
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now