Solved

Printing A form

Posted on 2004-04-29
5
139 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
[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
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

739 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