<div class="meta" robots="noindex">

</div>

Property

# PrinterSetup.SetupString

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `PrinterSetup.Settings<printersetup.settings>` as a replacement.

</div>

## Description

A value that represents all of the other properties.

## Notes

When the user clicks OK in the Page Setup dialog box, this value will be populated. You can then store this value to store the user's Page Setup settings. Assigning one of these stored values to this property will then update all of the other properties restoring the page setup settings.

## Sample code

This example displays the Page Setup dialog box and then stores the settings the user chose in a variable:

``` xojo
Dim settings As String
Dim pageSetup As New PrinterSetup
If pageSetup.PageSetupDialog Then
  settings = PageSetup.SetupString
End If
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This example restores the page setup settings stored in a variable called "settings" and then displays the Page Setup dialog box with those settings:

``` xojo
Dim pageSetup As New PrinterSetup
pageSetup.SetupString = settings
If pageSetup.PageSetupDialog Then
  settings = PageSetup.SetupString
End If
```

## Compatibility

All project types on all supported operating systems.
