Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Jun 24, 2019 9:18 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Htmlviewer Print on linux
PostPosted: Tue May 12, 2009 3:54 pm 
Offline

Joined: Sat Feb 07, 2009 6:53 am
Posts: 4
I am converting my Vb application into Rb for deploying on Linux. Everything has worked fine with 95 % job completed successfully. But now i am stuck with Htmlviewer Print option or the lack of it. Its really frustrating to end a project for so simple a thing like print. But i have gone through most of the forum but without a solution.Can any body help???


Top
 Profile  
Reply with quote  
 Post subject: Re: Htmlviewer Print on linux
PostPosted: Tue May 12, 2009 4:11 pm 
Offline

Joined: Sat Feb 07, 2009 6:53 am
Posts: 4
i now got the Back & Forward button working but the problem with print continues. Please help


Top
 Profile  
Reply with quote  
 Post subject: Re: Htmlviewer Print on linux
PostPosted: Wed May 13, 2009 12:34 pm 
Offline
User avatar

Joined: Thu Nov 15, 2007 4:07 am
Posts: 313
Location: 't Zand, The Netherlands
Printing on Linux is not well supported. I am also working on an HTML viewer. After reading your post I tried a few things but did not get it to work. The following code in the Print button's Action event should do the trick, but I get blank sheets instead:
Dim g As Graphics

g = OpenPrinterDialog
If g <> Nil Then
HTMLViewer1.DrawInto g, 1, 1
End If
It would not surprise me if this is also not 'yet' supported for the Linux platform. But I would love to hear if this should work for Windows and OS X

Frank

_________________
Debian Sqeeze - Real Studio 2011r4
You have to have a little programming fun every day!


Top
 Profile  
Reply with quote  
 Post subject: Re: Htmlviewer Print on linux
PostPosted: Wed May 13, 2009 1:46 pm 
Offline
User avatar

Joined: Thu Nov 15, 2007 4:07 am
Posts: 313
Location: 't Zand, The Netherlands
According to what I have found in this forum so far, it is not possible to print htmlviewer content directly.

Frank

_________________
Debian Sqeeze - Real Studio 2011r4
You have to have a little programming fun every day!


Top
 Profile  
Reply with quote  
 Post subject: Re: Htmlviewer Print on linux
PostPosted: Mon Jan 25, 2010 11:52 am 
Offline

Joined: Thu Sep 24, 2009 4:24 pm
Posts: 7
mkatyayan wrote:
i now got the Back & Forward button working but the problem with print continues. Please help


Hey mkatyayan, can you give me a quick lead on how you got Back & Forward buttons to work? I'm developing on Mac to run on Windows.

Thanks,
Whit


Top
 Profile  
Reply with quote  
 Post subject: Re: Htmlviewer Print on linux
PostPosted: Tue Jan 26, 2010 1:05 am 
Offline

Joined: Thu Sep 24, 2009 4:24 pm
Posts: 7
Disregard. Found URL param in DocBegin. Almost working now.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group