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

How do I get "collate" from e?

I am using Visual Basic.NET 2002 and cannot get "collate" from the
PrintDialog1 or e.PageSettings.PrinterSettings.Collate to return anything
but "False." What am I doing wrong?

I am using
PrintDialog1.Document = PrintDocument1
'PrintDialog1.PrinterSettings.Copies = 4 'I have tried these two lines
too
'PrintDialog1.PrinterSettings.Collate = True 'I get the 4 but not the
True
If PrintDialog1.ShowDialog() = DialogResult.OK Then
Messagebox.Show(PrintDocument1.PrinterSettings.Col late .ToString)
PrintPreview1.Document = PrintDocument1
'PrintPreview1.Document = PrintDialog1.Document 'I have tried this too
PrintPreview1.ShowDialog()
End If

TIA, Bobbo
Nov 21 '05 #1
3 2017
CT
Okay, I might be asking the obvious, but does the printer and the driver
support collating?

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Robert Liles" <rl****@midsouth.rr.com> wrote in message
news:qS******************@tornado.ohiordc.rr.com.. .
I am using Visual Basic.NET 2002 and cannot get "collate" from the
PrintDialog1 or e.PageSettings.PrinterSettings.Collate to return anything
but "False." What am I doing wrong?

I am using
PrintDialog1.Document = PrintDocument1
'PrintDialog1.PrinterSettings.Copies = 4 'I have tried these two lines
too
'PrintDialog1.PrinterSettings.Collate = True 'I get the 4 but not the
True
If PrintDialog1.ShowDialog() = DialogResult.OK Then
Messagebox.Show(PrintDocument1.PrinterSettings.Col late .ToString)
PrintPreview1.Document = PrintDocument1
'PrintPreview1.Document = PrintDialog1.Document 'I have tried this
too
PrintPreview1.ShowDialog()
End If

TIA, Bobbo

Nov 21 '05 #2
Yes, it does.
Okay, I might be asking the obvious, but does the printer and the driver
support collating?

Nov 21 '05 #3
If I check the "Collate" box in the PrintDialog it is ignored, always
returns "False" and does not collate. If I add the line
e.PageSettings.PrinterSettings.Collate = True
in my print routine, it does Collate just fine. How can I get it to
recognize that the user has checked the Collate box in the PrintDialog? Or,
how can I determine that the user has checked the Collate box so I can
programatically turn on Collation?

TIA, Bobbo
---------------------------------------------------------------------------
"Robert Liles" <rl****@midsouth.rr.com> wrote in message
news:qS******************@tornado.ohiordc.rr.com.. .
I am using Visual Basic.NET 2002 and cannot get "collate" from the
PrintDialog1 or e.PageSettings.PrinterSettings.Collate to return anything
but "False." What am I doing wrong?

I am using
PrintDialog1.Document = PrintDocument1
'PrintDialog1.PrinterSettings.Copies = 4 'I have tried these two lines
too
'PrintDialog1.PrinterSettings.Collate = True 'I get the 4 but not the
True
If PrintDialog1.ShowDialog() = DialogResult.OK Then
Messagebox.Show(PrintDocument1.PrinterSettings.Col late .ToString)
PrintPreview1.Document = PrintDocument1
'PrintPreview1.Document = PrintDialog1.Document 'I have tried this
too
PrintPreview1.ShowDialog()
End If

TIA, Bobbo

Nov 21 '05 #4

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

Similar topics

3
by: Bill MacLean | last post by:
-- Example Schema posted at end of message: --- For reporting purposes, I need to build a single comma delimited string of values from the "many" table of a database. The easiest way to see...
6
by: Joe Price | last post by:
Hi all I've formatted one of my xml files for viewing through a web browser using xsl. It works fine in Internet Explorer, however when I use Netscape6 or Opera to view the same page the...
1
by: Amir | last post by:
Hi all, I have a table called PTRANS with few columns (see create script below). I have created a view on top that this table VwTransaction (See below) I can now run this query without a...
3
by: Vidit | last post by:
Hi I keep getting the error "Error Creating Windows Handle" in my application and different places in the code. This occurs only to certain users. Its very random and cannot be reproduced in...
0
by: Robert Liles | last post by:
If I check the "Collate" box in the PrintDialog it is ignored, always returns "False" and does not collate. If I add the line " e.PageSettings.PrinterSettings.Collate = True" in my print routine,...
4
by: dbuchanan | last post by:
Hello, I have an audit table into which I insert information about the use of the application. This works sometimes and other times fails. I cannot find any reason for it failing. It is always...
4
by: Chris Strug | last post by:
Hi, I'm working with VB 2005.net and have managed to get my head around passing values between forms by creating properties of the relevant form classes. However, say that I have a number of...
0
by: Gawn | last post by:
Dear all, Greeding from Thailand. Need help for my news script. I am trying to display news which keywords match the current page keywords. I am using Dreamweaver 8 and PhpMyAdmin to manage MySQL....
2
Uncle Dickie
by: Uncle Dickie | last post by:
Hi All, I am getting the error: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation. when I run a query I have...
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:
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
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.