title: Program not working on other PCs or as other users
body: <p>I have written a small program that prints the contents of the windows clipboard.</p>
  
  <p>The program works fine on my computer as long as I am logged on as myself but if I log on as another user and try to use the program it won't copy the clipboard data to my program. If I install it on other PC`s I have the same problem even if I am logged on as administrator.</p>
  
  <p>Here is the code I am using :</p>
  
  <pre><code>Private Sub BtnPrint_Click(sender As Object, e As EventArgs) Handles BtnPrint.Click
  
      If Clipboard.GetDataObject().GetDataPresent(DataFormats.Rtf) Then
          RTBDisplay1.Rtf = Clipboard.GetDataObject().GetData(DataFormats.Rtf)
      Else
          RTBDisplay1.Text = "The clipboad does not contain any text"
      End If
  
      PrintDocument1.DefaultPageSettings.Margins.Left = 1
      PrintDocument1.DefaultPageSettings.Margins.Right = 1
  
      If PrintDialog1.ShowDialog() = DialogResult.OK Then
          PrintDocument1.Print()
      End If
  
      Clipboard.Clear()
  
  End Sub
  </code></pre>
  
  <p>I have used the published files to setup the program and also used Inno Setup to create a setup program, the program installs properly and runs properly on my computer and other computers but it just won`t get the clipboard data.</p>
  
  <p>I have tried changing the dataformat to text and copying from notepad but even that doesn`t work either.</p>