HI David,I hadn't tried it from the projects view, only the file view.
Having tried it (after your suggestion) I can confirm it works the same way as 
you are describing. If I select a file in the project list and go to 
File->Print, the preview box opens and the file is visible and I am able to 
print it. Moving back into the file view and then selecting a file, File->Print 
also gives me the preview with the file available to print. (NB11.1).
If I restart netbeans, open a file in file view and go to File->Print it works 
properly (or as expected).
The question now I guess is - How does it lose the ability to print 
occasionally?
Phil

    On Sunday, 8 September 2019, 18:22:46 BST, David Green 
<dgreen...@gmail.com> wrote:  
 
 On MacOS and NetBeans 11.1, I see two behaviors:
1. When I am in the Files View, there is an attempt to show me a print page 
preview by NetBeans.  This is unreliable, mostly it comes up empty.2. When I am 
in the Projects View, the OS print dialog comes up reliability and prints.
(After I have printed the file with option 2, then option 1 starts "working" by 
going directly to the OS print dialog.  The "healing" behavior seems to be 
preserved across a quit and reopen of NetBeans.)
Dave
On Sun, Sep 8, 2019 at 5:05 AM philip.burn...@sky.com <philip.burn...@sky.com> 
wrote:

 Thanks all,Printing works for me as it should on my other station with 
netbeans 11.0, so it's something outside of netbeans I feel.Printing works OK 
with other software though (notepad++, word, excel etc.) so I'm unsure where to 
look for the problem :(
I can open the code in notepad++ to print, but that's a bit defeatist , or just 
edit with my laptop all the time...
Phil
    On Sunday, 8 September 2019, 07:05:58 BST, Laszlo Kishalmi 
<laszlo.kisha...@gmail.com> wrote:  
 
  
Works for me under Ubuntu 18.04 as well.
 
 On 9/7/19 2:21 PM, Glenn Holmer wrote:
  
On 9/7/19 4:05 PM, philip.burn...@sky.com wrote: 
 
Open a project, select a file to edit. 
 Once the file is open select 'File' from the main menu, then Print from the 
drop down menu. 
 The print dialog box opens, but all sections are greyed out (except the print 
options and page setup). 
 
 
 
    *Product Version:* Apache NetBeans IDE 11.1 
 
     *Java:* 12.0.2; Java HotSpot(TM) 64-Bit Server VM 12.0.2+10 
 
     *Runtime:* Java(TM) SE Runtime Environment 12.0.2+10 
 
     *System:* Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb) 
 
     *User directory:* C:\Users\Philip\AppData\Roaming\NetBeans\11.1 
 
     *Cache directory:* C:\Users\Philip\AppData\Local\NetBeans\Cache\11.1 
 
 
 Don't know if this applies to your environment, but years ago under Linux, I 
remember having to make sure the printer was set as the default (in OS 
settings) even if there was only one. 
 
 
  ---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists 
   
  

Reply via email to