Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum
Register Blogs Search Today's Posts Mark Forums Read

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-2009, 04:25 PM
BlaineSch's Avatar
Code Warrior
 
Join Date: Apr 2009
Location: Trapped in my own little world.
Age: 19
Posts: 2,169
BlaineSch is a glorious beacon of lightBlaineSch is a glorious beacon of lightBlaineSch is a glorious beacon of lightBlaineSch is a glorious beacon of lightBlaineSch is a glorious beacon of lightBlaineSch is a glorious beacon of light
Send a message via MSN to BlaineSch
Saving in RTF

Well technically im using PHP to do this but that is not what I am having trouble with. I tried googling this and couldnt find anything.

Basically I am trying to save something in RTF format. Is there a tutorial anywhere some people might recommend? Obviously I could just copy and paste the same thing a RTF thing created or play around with it for a few hours but I am trying to find a way to do this without being to messy.

So far I have realized that this works fine:

Code:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\f0\fs20
\b Full Name:\b0  Blaine Sch\par
\b Full Name:\b0  Blaine Sch\par
\b Full Name:\b0  Blaine Sch\par
\b Full Name:\b0  Blaine Sch\par
\b Full Name:\b0  Blaine Sch\par
}
The first 3 lines just start it up - take any of them out and you mess it up... the \b \b0 thing make it bold and \par is a new line
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-26-2009, 05:16 PM
John's Avatar
Co-Administrator
 
Join Date: Jul 2006
Age: 21
Posts: 5,835
John is just really niceJohn is just really niceJohn is just really niceJohn is just really niceJohn is just really nice
Send a message via AIM to John Send a message via MSN to John
Re: Saving in RTF

I would start by reading the specification. Rich Text Format (RTF) Specification, version 1.6
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving session into database and use it yonghan PHP Forum 9 02-22-2009 07:13 AM
saving to database after few seconds iory PHP Forum 4 10-23-2008 10:55 AM
Saving Data RGB Java Help 3 09-25-2008 04:06 PM
Saving Position and Split Screen Crom C# Programming 1 09-07-2007 12:14 PM
saving images to streams Darkkender Managed C++ 0 05-23-2007 04:58 PM


All times are GMT -5. The time now is 06:54 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0