title: How do I get a DataWindow to save correctly to PDF?
body: <p>Here's my problem.
  I currently am trying to print a DataWindow to a PDF file in PowerBuilder 12.5. I got some code, and it currently looks like this.</p>
  
  <pre><code>//dw_1.Modify("Datawindow.Export.PDF.Method = Distill! ")
  //dw_1.Modify("DataWindow.Export.PDF.Method = XSLFOP! ")
  dw_1.Object.DataWindow.Export.PDF.Method = Distill!
  //dw_1.Object.DataWindow.Printer = "\\prntsrvr\pr-6"
  dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript="No"
  dw_1.SaveAs("c:\dw_one.pdf", PDF!, false)
  </code></pre>
  
  <p>I installed GhostScript on the machines, but I read at some places that I would need to create a new printer and set some drivers in the PB driver directory. Could anybody enlighten me?</p>