473,385 Members | 1,888 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,385 software developers and data experts.

VisibleClipBounds property

I've got some problems printing to a dot matrix printer.
After correctly setting all the charecteristics of my papersize in the
BeginPrint()...

private void pdLabelDoc_BeginPrint(object sender,
System.Drawing.Printing.PrintEventArgs e)
{
pdLabelDoc.PrinterSettings.PrinterName = "Epson LX-300";

printFont = new Font("Arial", 10);
printFontR = new Font("Arial", 8);
printFontBC = new Font("IDAutomation.com Code39", 12,
FontStyle.Regular);
PaperSize etichette = new PaperSize("Etichette", 285, 1200);
pdLabelDoc.DefaultPageSettings.PaperSize = etichette;
Margins margins = new Margins(0,0,0,0);
pdLabelDoc.DefaultPageSettings.Margins = margins;
}

I call the PrintPage()...

private void pdLabelDoc_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
int count = 0;
DataRow articolo;

float yPos = 0;
// My paperSize contains 8 articles. of each article I print
four lines...

// If I have a breakpoint here, paperSize and the other settings are
// correct. The only strange property is VisibleClipBounds, that is
// set at (0,0,285,1066)
// VisibleClipBounds is a read-only property (the online says it's a
// get-set...) and I don't know how to modify it

while (count < 32 && contaArticoliGenerale <
listaArticoli.Rows.Count)
{
...
contaArticoliGenerale++;
}

if (contaArticoliGenerale < listaArticoli.Rows.Count)
{
e.HasMorePages = true;
contaPagine++;
}
else
e.HasMorePages = false;
}
Any suggestion?

TIA

Nov 13 '05 #1
1 3545
No news?

On Wed, 25 Jun 2003 13:27:06 +0200, Francesco
<fr**************@arcafondi.it> wrote:
I've got some problems printing to a dot matrix printer.
After correctly setting all the charecteristics of my papersize in the
BeginPrint()...

private void pdLabelDoc_BeginPrint(object sender,
System.Drawing.Printing.PrintEventArgs e)
{
pdLabelDoc.PrinterSettings.PrinterName = "Epson LX-300";

printFont = new Font("Arial", 10);
printFontR = new Font("Arial", 8);
printFontBC = new Font("IDAutomation.com Code39", 12,
FontStyle.Regular);
PaperSize etichette = new PaperSize("Etichette", 285, 1200);
pdLabelDoc.DefaultPageSettings.PaperSize = etichette;
Margins margins = new Margins(0,0,0,0);
pdLabelDoc.DefaultPageSettings.Margins = margins;
}

I call the PrintPage()...

private void pdLabelDoc_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
int count = 0;
DataRow articolo;

float yPos = 0;
// My paperSize contains 8 articles. of each article I print
four lines...

// If I have a breakpoint here, paperSize and the other settings are
// correct. The only strange property is VisibleClipBounds, that is
// set at (0,0,285,1066)
// VisibleClipBounds is a read-only property (the online says it's a
// get-set...) and I don't know how to modify it

while (count < 32 && contaArticoliGenerale <
listaArticoli.Rows.Count)
{
...
contaArticoliGenerale++;
}

if (contaArticoliGenerale < listaArticoli.Rows.Count)
{
e.HasMorePages = true;
contaPagine++;
}
else
e.HasMorePages = false;
}
Any suggestion?

TIA


Nov 15 '05 #2

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

Similar topics

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...
3
by: Johnny M | last post by:
using Access 2003 Pardon the subject line, but I don't have a better word for this strange behavior (or behavior I don't understand!!!) I have a class module named DepreciationFactor. One of...
7
by: MP | last post by:
Hello, I am trying to write a class that will expose some properties. One of the property is extracted from a SQL database and can be NULL or some integer value. Is there a elegant way of...
3
by: MattC | last post by:
Hi, I found this code somewhere on the net and need to make some alterations. public class GenericSorter : IComparer { String sortProperty; bool sortOrder; public GenericSorter(String...
2
by: Edward Diener | last post by:
How does one specify in a component that a property is a pointer to another component ? How is this different from a property that is actually an embedded component ? Finally how is one notified in...
0
by: Brian Young | last post by:
Hi all. I'm using the Property Grid control in a control to manage a windows service we have developed here. The windows service runs a set of other jobs that need to be managed. The control...
15
by: Lauren Wilson | last post by:
Owning your ideas: An essential tool for freedom By Daniel Son Thinking about going into business? Have an idea that you think will change the world? What if you were told that there was no way...
1
by: cday119 | last post by:
I have a Class with about 10 properties. All properties return right except for one. It is real annoying and I can't see why its not working. Maybe someone else can see something. It is the...
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? ...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.