Given the following code it will give a graphics that is different from the window1.graphics, However if the Grafport or CGContext is obtained:

  dim ps as new PrinterSetup

  if ps.PageSetupDialog then
     dim g as graphics = OpenPrinterDialog

    if g.handle(5) = self.Graphics.handle(5) then
      MsgBox "the same graphics handle?"
    else
      MsgBox "not the same graphics handle"
    end if

//or

    if g.handle(2) = self.Graphics.handle(2) then
      MsgBox "the same graphics handle?"
    else
      MsgBox "not the same graphics handle"
    end if


    end if

then it appears that the graphics object handle from the OpenPrinterDialog is identical to the handle obtained from the window graphics object. Printing then result in the window.

This is unfortunate because a plugin cannot take advantage of using the printer graphics grafport or context to print. Haven't tried it on windows..

This is a bug, right?
_______________________________________________
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