Printing problem with Linux

Hi all,

I am upgrading applications from 2.4.2.4 to 2.6.1.0.
Under 2.4.2.4 all works fine.

Under 2.6.1.0 and MSW, all works fine too, with :
- Python-2.3.5.exe
- wxPython2.6-win32-ansi-2.6.1.0-py23.exe

But under Linux (Mandrake 10.1), with :
- Python 2.3.4
- wxPython2.6-gtk2-ansi-2.6.1.0-mdk101_py2.3.i586.rpm
- wxPython-common-gtk2-ansi-2.6.1.0-mdk101_py2.3.i586.rpm

the printing does not work, the postscript file is not completed (allways 6k, only Prolog section).

I use something as (only part) :

        imprim1 = Printer(self, text) # wx.Printout
        imprim2 = Printer(self, text)
        printer_config = wx.PrintData()
        printer_config.SetPaperId(wx.PAPER_A4)
        printer_config.SetOrientation(wx.PORTRAIT)
        preview = wx.PrintPreview(imprim1, imprim2, printer_config)
        preview_win = wx.PreviewFrame(preview, self,
                                      self.CfgTab.get('GENE', 'Titre'),
                                      size=wx.Size(600, 700))
        preview_win.Initialize()
        if sys.platform == 'win32' :
            tmp = wx.Icon(agRecFic(os.path.join("image", 'menu.ico')),
                          wx.BITMAP_TYPE_ICO)
            preview_win.SetIcon(tmp)
            preview_win.Maximize()
        self.Grille.SetFocus()
        preview_win.MakeModal(False)
        preview_win.Show()

Thanks in advance for help ...

Friendly.

···

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A. (http://www.agorinfo.fr)

Test the PrintFramework on the demo and see if it works.
For me it works. The postscript file was generated correctly.
I'm using the unicode version of wxPython2.6.

Ricardo

···

On Fri, 2005-08-26 at 10:41 +0200, Hugues JEAN-BAPTISTE wrote:

Hi all,

I am upgrading applications from 2.4.2.4 to 2.6.1.0.
Under 2.4.2.4 all works fine.

Under 2.6.1.0 and MSW, all works fine too, with :
- Python-2.3.5.exe
- wxPython2.6-win32-ansi-2.6.1.0-py23.exe

But under Linux (Mandrake 10.1), with :
- Python 2.3.4
- wxPython2.6-gtk2-ansi-2.6.1.0-mdk101_py2.3.i586.rpm
- wxPython-common-gtk2-ansi-2.6.1.0-mdk101_py2.3.i586.rpm

the printing does not work, the postscript file is not completed
(allways 6k, only Prolog section).

Ricardo Pedroso a écrit :

···

On Fri, 2005-08-26 at 10:41 +0200, Hugues JEAN-BAPTISTE wrote:

Hi all,

I am upgrading applications from 2.4.2.4 to 2.6.1.0.
Under 2.4.2.4 all works fine.

Under 2.6.1.0 and MSW, all works fine too, with :
- Python-2.3.5.exe
- wxPython2.6-win32-ansi-2.6.1.0-py23.exe

But under Linux (Mandrake 10.1), with :
- Python 2.3.4
- wxPython2.6-gtk2-ansi-2.6.1.0-mdk101_py2.3.i586.rpm
- wxPython-common-gtk2-ansi-2.6.1.0-mdk101_py2.3.i586.rpm

the printing does not work, the postscript file is not completed (allways 6k, only Prolog section).
   
Test the PrintFramework on the demo and see if it works.
For me it works. The postscript file was generated correctly.
I'm using the unicode version of wxPython2.6.

Ricardo

The demo does the same (More Windows/Controls - TablePirnt)
Changing from ansi to unicode is too much complicated ...
I stay in 2.4.2.4 for the moment, hope help in a near future ...

Thanks for help.

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A. (http://www.agorinfo.fr)

I test the TablePrint and have the same result that you have. The
postscript is incorrectly generated.
So it's not an ansi-unicode issue.

Ricardo

···

On Mon, 2005-08-29 at 17:18 +0200, Hugues JEAN-BAPTISTE wrote:

>Test the PrintFramework on the demo and see if it works.
>For me it works. The postscript file was generated correctly.
>I'm using the unicode version of wxPython2.6.
>
>Ricardo
>
>
The demo does the same (More Windows/Controls - TablePirnt)
Changing from ansi to unicode is too much complicated ...
I stay in 2.4.2.4 for the moment, hope help in a near future ...

Thanks for help.

Ricardo Pedroso a écrit :

···

On Mon, 2005-08-29 at 17:18 +0200, Hugues JEAN-BAPTISTE wrote:

Test the PrintFramework on the demo and see if it works.
For me it works. The postscript file was generated correctly.
I'm using the unicode version of wxPython2.6.

Ricardo
     

The demo does the same (More Windows/Controls - TablePirnt)
Changing from ansi to unicode is too much complicated ...

I test the TablePrint and have the same result that you have. The
postscript is incorrectly generated.
So it's not an ansi-unicode issue.

Ricardo

Hi all,

I come back with my problem (I hope new readers come back from holidays !...).
Is somebody have the same problem or an idea ?

Friendly.

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A. (http://www.agorinfo.fr)