473,382 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

System.Drawing.Graphic.VisibleClipBounds

I have a program that prints 2 different reports and I have 2 different
printers (hp 9000, hp9050). The first report prints perfectly on both
printers. The second only prints pefectly on the 9000. On the 9050, I only
get a small square's worth in the upper left corner.

I've narrowed the problem down to the VisibleClipBounds(VCB) property of the
Graphic object I'm using to do the drawing. For some reason, on the second
report the VCB gets set to unusually low numbers when printing to the 9050.
I am not modifying the clip bounds on either report, so I am unsure why it
changes.

The only thing I do change is the
Graphic.PageUnit = System.Drawing.GraphicsUnit.Document;
however, this is the first line for both drawing functions. In the second
function, I've tried using both
Graphic.Clip.MakeInfinite();
Graphic.ResetClip();
neither one seem to change the VCB

Anyone have any ideas as to why it would do this?
Nov 22 '05 #1
1 3582

I am having the same problem. Did you find a fix or workaround?

Thanks for your help.

Brett wrote:
*I have a program that prints 2 different reports and I have 2
different
printers (hp 9000, hp9050). The first report prints perfectly on
both
printers. The second only prints pefectly on the 9000. On the 9050,
I only
get a small square's worth in the upper left corner.

I've narrowed the problem down to the VisibleClipBounds(VCB) property
of the
Graphic object I'm using to do the drawing. For some reason, on the
second
report the VCB gets set to unusually low numbers when printing to
the 9050.
I am not modifying the clip bounds on either report, so I am unsure
why it
changes.

The only thing I do change is the
Graphic.PageUnit = System.Drawing.GraphicsUnit.Document;
however, this is the first line for both drawing functions. In the
second
function, I've tried using both
Graphic.Clip.MakeInfinite();
Graphic.ResetClip();
neither one seem to change the VCB

Anyone have any ideas as to why it would do this? *


--
jstreit
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1577886.html

Jun 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: padawan | last post by:
I have a winforms control that draws a rectangle for a boarder and positions some graphical elements around the control to create the boarder effect I desired. In the control I have overriden the...
0
by: Brett | last post by:
I have a program that prints 2 different reports and I have 2 different printers (hp 9000, hp9050). The first report prints perfectly on both printers. The second only prints pefectly on the...
9
by: Oddball | last post by:
Firstly I'd like to say hello. This is my first post having ghosted for some time - I know, I'm a bad man. I'm pretty sure this following post hasn't been adressed on the forum, I may be wrong -...
0
by: eruess | last post by:
Here's the scenario: I've got a whole bunch (for the sake of argument, let's say thousands) of different little 32x14 .png files that act as buttons all over a very large website. Each button...
1
by: Hadar | last post by:
Hi, I'm getting "object is currently in use elsewhere" when I use System.Drawing.Graphics.MesureString. This is what I do: My controls use a utility class the helps it to mesure strings. To...
2
by: Richard | last post by:
I each time get errors when I use an .bmp or ,.gif file as source but whenever I use a .jpg file it works perfect. Why is that? and how to fix it? I almost have no knowledge about the...
13
by: Metallicraft | last post by:
I have a vb6 application. On the main form is a picture box with one or two images and several pieces of text displayed in it. These are created on the fly using gdi32 routines that are all in a...
5
by: Michael C# | last post by:
Hi all, I set up a System.Timers.Time in my app. The code basically just updates the screen, but since the processing performed is so CPU-intensive, I wanted to make sure it gets updated...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
1
by: ata | last post by:
Hi, Consider a custom control, say, MyControl that's being derived from Control. 1. How am I supposed to set the initial size of MyControl? Am I supposed to override the DefaultSize property? ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.