Dave,
Could I have a example of your setup code as I was trying to do the same
thing in Windows but I could not figure it out how to save and then read it
with out having to setup the printer every time.
Thanks
Jonathon
----- Original Message -----
From: "Dave Bert" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 16, 2006 8:07 AM
Subject: RE: Printer Page Setup String
Tom,
I got it now. I was doing exactly what you said but I was messing up
elsewhere. I needed to add this: stSettings.Text = PageSetup.SetupString
so I could see it, and also remove an extra call to get the
pagesetup.setupstring which was causing most of the trouble for me...Thats
what I get for working into the night :)
Thanks,
Dave
From: "Dixon, Tom" <[EMAIL PROTECTED]>
Reply-To: Getting Started <[email protected]>
To: "Getting Started" <[email protected]>
Subject: RE: Printer Page Setup String
Date: Thu, 16 Mar 2006 08:37:14 -0600
Try loading the setup string back directly to a page setup property when
reading from your .dat file.
For example if you have a property in a module or class "ps As
PageSetup" then save it to a string using TextOutputStream
TextOutputStream.WriteLine EncodedBase64(ps)
and use
ps = DecodeBase64(TextInputStream.ReadLine )
when reading it back in using TextInputStream.
> Well, I thought I had this figured out late last night but I
> was wrong. I am trying to save the page setup string into a
> file and reload it back in as the page setup string to use so
> once a user has set the margins, they don't have to see the
> dialog again. I was able to save the string as an
> EncodedBase64 type into a .Dat file, but I am having trouble
> getting it to load back in (or trouble seeing that I truly
> have it loaded back in). It may be because my test example
> displays the string to a static text, then I clear it and
> load the .Dat file into the same static text with another
> button. This also opens the page setup dialog so it looks
> like its working, but when I make another test app with just
> the text input, the page setup dialog always shows the
> default settings. Doe anybody have a working example I can see?
> Thank you in advance,
> Dave
>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>