Unable to print (0.18 final)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
benjaminwharton
Posts: 46
Joined: Mon Feb 25, 2019 1:03 am

Unable to print (0.18 final)

Postby benjaminwharton » Thu Apr 18, 2019 12:49 pm

I've just noticed that hitting ctrl+p or using "print" in the file menu doesn't do anything anymore. No print dialog, nothing. I've included a file as an example, although all you have to do is open a new document, draw something, and try printing it. I have no problem printing in previous versions.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
Attachments
print me.FCStd
(3.77 KiB) Downloaded 10 times
Syres
Posts: 267
Joined: Thu Aug 09, 2018 11:14 am

Re: Unable to print (0.18 final)

Postby Syres » Thu Apr 18, 2019 5:22 pm

When you state that you had no problem printing in previous versions were they Py2Qt4 builds, because I can't find any of my old Py3Qt5 builds that this worked in?

By the way with all logging set in Report View, there are two messages when trying to print:

Code: Select all

QPrintDialog: Cannot be used on non-native printers
QPrintDialog: Cannot be used on non-native printers
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)

Print dialog loads as expected, though I have never had any reason to use it using:

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedKingdom (en_GB)
User avatar
benjaminwharton
Posts: 46
Joined: Mon Feb 25, 2019 1:03 am

Re: Unable to print (0.18 final)

Postby benjaminwharton » Thu Apr 18, 2019 5:34 pm

Syres wrote:
Thu Apr 18, 2019 5:22 pm
When you state that you had no problem printing in previous versions were they Py2Qt4 builds, because I can't find any of my old Py3Qt5 builds that this worked in?
Sorry, I don't know much about snakes. :oops: Here's the information for the version that does work for me:

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15938 (Git)
Build type: Release
Branch: master
Hash: acdd4b097bbaf6d94bc09cf38f25924bd5d3e778
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/France (fr_FR)
wandererfan
Posts: 2705
Joined: Tue Nov 06, 2012 5:42 pm

Re: Unable to print (0.18 final)

Postby wandererfan » Thu Apr 18, 2019 11:31 pm

benjaminwharton wrote:
Thu Apr 18, 2019 12:49 pm
I've just noticed that hitting ctrl+p or using "print" in the file menu doesn't do anything anymore. No print dialog, nothing. I've included a file as an example, although all you have to do is open a new document, draw something, and try printing it.
We are talking about printing from the 3D view, right?

In these versions, the best print result I get from the 3D view is a blank page. Both TechDraw and Drawing print ok.
OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16474 +1 (Git)
Build type: debug
Branch: LeaderLine
Hash: 0ff07ac6cadc2c83ccfb2a1280b66ec9ddfc75ca
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)


But in this version, I can print from the 3D view.
OS: Linux Mint 19 Tara (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16486 (Git)
Build type: debug
Branch: master
Hash: bbd9fbf892879f27ab8a69841de37e91bf11d6f1
Python version: 2.7.15rc1
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/Canada (en_CA)

Qt5.9 vs Qt4.8??
User avatar
benjaminwharton
Posts: 46
Joined: Mon Feb 25, 2019 1:03 am

Re: Unable to print (0.18 final)

Postby benjaminwharton » Fri Apr 19, 2019 12:37 am

wandererfan wrote:
Thu Apr 18, 2019 11:31 pm
We are talking about printing from the 3D view, right?
Yes, or even from a TechView page.
wandererfan
Posts: 2705
Joined: Tue Nov 06, 2012 5:42 pm

Re: Unable to print (0.18 final)

Postby wandererfan » Fri Apr 19, 2019 12:24 pm

benjaminwharton wrote:
Fri Apr 19, 2019 12:37 am
Yes, or even from a TechView page.
I can print or export PDF from TechDraw successfully in all the version listed above. I only have problems printing the 3D window.

Are you having problems printing from TechDraw and/or Drawing also?
jmaustpc
Posts: 9410
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Unable to print (0.18 final)

Postby jmaustpc » Fri Apr 19, 2019 1:44 pm

Printing the 3d model view here worked with export to pdf and print preview from the file menu.
I just opened FreeCAD, new document, Part WB, default Part Cube and then File menu ... print preview (and I tried export to pdf), both seemed to work as expected.

I created a default techdraw page, inserted a top view, added a dimension, once again Export as PDF and print preview worked perfectly.

OS: Kubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
User avatar
benjaminwharton
Posts: 46
Joined: Mon Feb 25, 2019 1:03 am

Re: Unable to print (0.18 final)

Postby benjaminwharton » Fri Apr 19, 2019 3:15 pm

wandererfan wrote:
Fri Apr 19, 2019 12:24 pm
benjaminwharton wrote:
Fri Apr 19, 2019 12:37 am
Yes, or even from a TechView page.
I can print or export PDF from TechDraw successfully in all the version listed above. I only have problems printing the 3D window.

Are you having problems printing from TechDraw and/or Drawing also?
I tried TechDraw again just to be sure (and Drawing because why not) and it's the same log message that I get when trying to print the 3D view (QPrintDialog: Cannot be used on non-native printers)
wandererfan
Posts: 2705
Joined: Tue Nov 06, 2012 5:42 pm

Re: Unable to print (0.18 final)

Postby wandererfan » Fri Apr 19, 2019 5:09 pm

benjaminwharton wrote:
Fri Apr 19, 2019 3:15 pm
I tried TechDraw again just to be sure (and Drawing because why not) and it's the same log message that I get when trying to print the 3D view (
)
OK, that's a different problem - I don't get that message.

I found a few posts on the internet about "cannot be used on non-native printers" but nothing specific to Win10. The resolution seems to be to move to a newer Qt5.x.
hinckel
Posts: 54
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: Unable to print (0.18 final)

Postby hinckel » Sat Apr 20, 2019 11:25 pm

OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16502 (Git)
Build type: Unknown
Branch: master
Hash: 06962535fa9ff348acca1b893cc4239908fb8bae
Python version: 3.7.2
Qt version: 5.12.2
Coin version: 3.1.3
OCC version: 7.3.0
Locale: English/United States (en_US)

Can export and print pdf from Techdraw but not from Part Designs..