©2003 Kåre Sjölander and Jonas Beskow
Introduction Download Documentation Links Forum
WaveSurfer user forum

FAQ  FAQ
Search  Search
Memberlist  Memberlist
Register  Register
Profile  Profile
Login  Login

Printing & Preview: PrintFile & GSView don't unload

 
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Sep 15, 2004 12:51 am    Post subject: Printing & Preview: PrintFile & GSView don't unload Reply with quote

Hi,
I'm eally impressed by this unconventional programme (1.7,1). I use it with WinXP pro SP 2.

Sofar I've met the following problem: I print via FrintFile and preview via GSView and both work, but after the job is done both programs cannot exit/be exited. If I force-close them WaveSurfer does not recover. If I kill the processes in Taskmanager Wave-Surfer does recover.

Has anybody met this problem, is there a solution/workaround?

Thanks in advance
Best
Back to top
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Thu Sep 16, 2004 8:52 am    Post subject: Reply with quote

Hello,

I never print myself on Windows, but PrintFile has always worked fine when testing. Previewing used to work but after a number of updates I now have the same problem you experience. For now, the best preview option is to save a postscript file and to double click on it in Windows Explorer, that will always work.

It seems strange that PrintFile doesn't work, do you have a PostScript capable printer?

Kåre
Back to top
View users profile Send private message Visit posters website
Guest






PostPosted: Thu Sep 16, 2004 9:43 am    Post subject: Reply with quote

Thank you for your answer, It's good to know that the problem is reproduceable.

I do not have a postscript printer (HP PSC 22170). Sofar I use PrintFile to call GSVIew (seemed the easiest and allows to print several pages at once). This points to GSView as culprit - yet I can print manually from PrintFile the same way (calli GSView) and both programmes unload without problem.

Thanks again
Rainer
Back to top
pancapangrawit



Joined: 15 Sep 2004
Posts: 2
Location: München

PostPosted: Thu Sep 16, 2004 9:49 am    Post subject: Reply with quote

Sorry, this is "Guest" - just reposting to make sure I'm notified, forgot to login first and second time.
Back to top
View users profile Send private message MSN Messenger
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Fri Sep 17, 2004 1:10 pm    Post subject: Reply with quote

There are alternatives to using PrintFile, for example using Ghostscript in a pipe.
The code below shows how it can be done, should be possible to use this method in wsurf.tcl,wsurf::print instead of the current one. I'll try this when I have some free time.

Kåre

Code:

package require Tk

# Path to the gswin32c.exe:
set gspath {C:\\Program Files\\gs\\gs8.14\\bin\\gswin32c.exe}

# Create a canvas:
canvas .test -background white -width 400 -height 400
pack .test

# Add something for printing:
.test create text      250 250 -text "This is a test."
.test create arc       100 100 40 40
.test create rectangle 100 300 150 350
.test create line      300 300 350 350
.test create line      300 350 350 300

# Open pipe to gs:
set gs [open "|\"$gspath\" -q -sDEVICE=mswinpr2 -dNOPAUSE -dBATCH -" w]

# Print the page:
update
.test postscript -channel $gs

# Close the pipe, sends page to printer:
close $gs
Back to top
View users profile Send private message Visit posters website
Guest






PostPosted: Sat Sep 18, 2004 4:00 am    Post subject: Reply with quote

Thank you Kare, I will look at this in a few days, when I return home. Yet I guess my report was more general. It seems quite generally that programmes that were loaded from within wavesurfer can't unload anymore.

Best
Rainer
Back to top
kare



Joined: 16 Aug 2002
Posts: 371
Location: KTH, Centre for Speech Technology

PostPosted: Wed Sep 22, 2004 4:04 pm    Post subject: Reply with quote

The problem is definitely general. I think I know how to solve it now using the Tcl package http://twapi.sf.net...

Kåre
Back to top
View users profile Send private message Visit posters website
pancapangrawit



Joined: 15 Sep 2004
Posts: 2
Location: München

PostPosted: Thu Sep 23, 2004 11:55 am    Post subject: Reply with quote

Looks promising,
best
.r.
Back to top
View users profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.speech.kth.se/wavesurfer Forum Index -> WaveSurfer All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.1 © 2001, 2002 phpBB Group