Solved

Printing A form

Posted on 2004-04-29
5
135 Views
Last Modified: 2010-05-02
Hi, i am using VB for applications in Excel. I have a program with which i would like to print the form. I have had no hassle doing so by using the printform command but what i would like to do is have the "Report" that it prints in the center of the screen. Is this possible with VBA as i found it very simple using VB6.

Here is what i would normally use

printer.CurrentX = (printer.Width - Editscreen.Width) / 2
printer.CurrentY = (printer.Width - Editscreen.Width) / 2
Editscreen.PrintForm

When i take out the "printer....." lines it works fine but surprise surprise when i try to use them i get an error.

This is probably a very simple question and the answer is probably No you can't do it, but if i get an answer that says i can i will give out 125 points. If the answer is just no then it'll be a 50.

Thanks

Scott
0
Comment
Question by:scotster
  • 2
5 Comments
 
LVL 4

Expert Comment

by:Javin007
ID: 10949828
"what i would like to do is have the "Report" that it prints in the center of the screen."

Not quite following you, here.  You talking about doing a print preview, or what?

-Javin
0
 

Author Comment

by:scotster
ID: 10986555
Sorry i meant the center of the paper. When i print it out via the printer it puts it to the top left. If possible i would like it to print to either the top center or center of the paper.

Thanks
0
 

Author Comment

by:scotster
ID: 11275876
Ok i'm going to ask for a refund on this as noone has been willing to help out.

Scotster
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 11280280
Closed, 50 points refunded.
Netminder
Site Admin
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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

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

21 Experts available now in Live!

Get 1:1 Help Now