473,508 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cloning a PrintDocument possible

Dim mPD As PrintDocument
Dim mPrinternameSaved As PrintDocument

Public WriteOnly Property PrintDocument() As PrintDocument
Set(ByVal value As PrintDocument)
mPD = value
mPrinternameSaved = mPD

I wanted to do something like the above except that I wanted
mPrinternameSaved to be an additional set of data identical to that stored
in mPD.
I think "Clone" is what I needed but couldn't find it for PrinterDocument.
Is that because it isn't there or did I miss something?
Is it possible to save a copy of a PrintDocument object?
Cal

Please see if the following is correct"

If I say
Dim mPD As PrintDocument
it creates a variable that can hold a reference to a PrinterDocument

If I say
Dim mPD = new PrintDocument

it creates a variable that can hold a reference to a PrinterDocument
And creates an object and puts the reference in mPD

If I then say mPD = someOther PrinterDocument
It puts a reference to someOther PrinterDocument into mPD
The created Object is then garbage collectiion food

Is all the above correct?
Nov 20 '05 #1
0 1393

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

Similar topics

0
1189
by: Frnak McKenney | last post by:
Evert: verb. Turn inside out; turn the inner surface of outward. The project I'm working on involves seven or eight reports. They vary from simple ("print this field here, that there, with a...
3
5288
by: Palli Olafs | last post by:
Hi Is it possible to save the PrintDocument as file without using a printer?
1
9148
by: Cody Manix | last post by:
iam trying to program a copy constructor that is able to create a bitwise copy of its argument: MyClass { int a; // lots of different fields goes here float x; MyClass (MyClass my) {
8
4856
by: Tom | last post by:
I've a problem. I want to clone an object having a list of other objects (and so on :/). Do you know any other way than ICloneable.Clone() implementation for all classes in the way? Help..
0
1054
by: brogits | last post by:
Hello, I would like to print text using PrintDocument in Draft mode. Is this possible? I tried the PrinterResolution but it is readonly? How does one set the PrinterSetting or...
3
6271
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this...
2
6610
by: bp | last post by:
Hi, I try to use my own PreviewDialog with a PrinPreviewControl, to preview a document of type MyPrintDocument, and I want to implement the PrintRange functionnality (print some pages between 2...
3
8739
by: raylopez99 | last post by:
The "C# Cookbook" (O'Reilly / Jay Hilyard), section 3.26, is on deep cloning versus shallow cloning. The scanned pages of this book are found here: http://www.sendspace.com/file/mjyocg (Word...
1
1770
by: Dan Dorey | last post by:
I've implemented the ICloneable interface on one of my class. I've written this simple code in two different ways and I think both should work but it's not the case and I'm curious to understand...
0
7127
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
7331
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,...
1
7054
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...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.