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>

Reply via email to