New topic: 

Print contents of textarea

<http://forums.realsoftware.com/viewtopic.php?t=33174>

         Page 1 of 1
   [ 6 posts ]                 Previous topic | Next topic          Author  
Message        brianheibert          Post subject: Print contents of 
textareaPosted: Sat Mar 27, 2010 8:57 pm                         
Joined: Sat Jan 23, 2010 3:03 pm
Posts: 138                I tried this to print the contents of my textarea but 
it didn't wiork  

Code:Dim g as Graphics
  Dim p as PrinterSetup
  p=New PrinterSetup
  If p.PageSetupDialog then
  g=OpenPrinterDialog(p)
  If g<> Nil then
  g.DrawString HyperDevelop_Editor.CodeField.text, 0,0
  End if
  End if

 
It errored out on g.DrawString HyperDevelop_Editor.CodeField.text,0,0

How do I properly print  a textarea control?

Brian   
                             Top                 jefftullin          Post 
subject: Re: Print contents of textareaPosted: Sun Mar 28, 2010 5:07 am         
                        
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 1435
Location: England                Your text area isn't called 
HyperDevelop_Editor.CodeField
Please try to do some debugging before you post.      
_________________
RB2009 R5.1 and RB2008
Mac 10.6 + Windows 7/XP  + Ubuntu Linux in Vmware
on a Macbook 2.16  
                             Top                brianheibert          Post 
subject: Re: Print contents of textareaPosted: Sun Mar 28, 2010 3:50 pm         
                
Joined: Sat Jan 23, 2010 3:03 pm
Posts: 138                oh yeah codearea sorry for the waisted bandwidth I 
will go thru my app and look for codefield and replace it with codearea      
_________________
Brian Heibert
brianheibert.net
insanemonkeysoftware.com
heib...@me.com  
                             Top                 brianheibert          Post 
subject: Re: Print contents of textareaPosted: Sun Mar 28, 2010 3:54 pm         
                
Joined: Sat Jan 23, 2010 3:03 pm
Posts: 138                I am still running into problems...

  f = specialfolder.Documents.child(filename_Editor.filename.text)
  dim t as textoutputstream
  
  if f<>nil then
  if f.exists then f.delete
  f.MacType="HTML"
  t=textoutputstream.create(f)
  t.write hyperdevelop_Editor.codearea.text
  t.close
  end if
  
  filename_Editor.close
  
errors out on line:  f = 
specialfolder.Documents.child(filename_Editor.filename.text)
  this method or property does not exist

it is dimmed in the parameters part of the method      
_________________
Brian Heibert
brianheibert.net
insanemonkeysoftware.com
heib...@me.com  
                             Top                 wbgookin          Post 
subject: Re: Print contents of textareaPosted: Sun Mar 28, 2010 6:07 pm         
                
Joined: Sat Aug 22, 2009 9:44 am
Posts: 59                Brian,

Why are you asking the same questions in different threads?  This is very 
confusing for people now, and will be VERY confusing for other users when they 
search for similar problems in the future.

What is f dimmed as?

Bill   
                             Top                 paulg          Post subject: 
Re: Print contents of textareaPosted: Sun Mar 28, 2010 10:05 pm                 
        
Joined: Thu Oct 05, 2006 11:45 pm
Posts: 712
Location: Planet Earth:North America:California                Brian,

This is your Printing thread, not your save a text area to a file thread.  
Perhaps you should ask this question on the correct thread.      
_________________
This message made with 100% recycled pixels.
MacBook CD2.0/2GB/OSX 10.6.3 / REAL Studio 2010R1 Pro  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 6 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

rbforumnotifier@monkeybreadsoftware.de

Reply via email to