Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

i am working on a project where i have a editor to customized the text and need to save text to RTF file and file path to sql server 2008 R2 database

please help me

Thanks

Yogesh
Posted

1 solution

 
Share this answer
 
v2
Comments
yogeshrrc 9-Dec-14 12:35pm    
dear sir,
As i mentioned above i have a editor on the web page to customized the text of editor and need to save text to RTF (keep formatting) file and file path to sql server 2008 R2 database

i have done upload image to folder and it's path to sql server database but don't know how to do this ..

thanks
/\jmot 9-Dec-14 12:42pm    
did you create the file from editor text??1st link
can you create a text file from the editor text??
isn't it you want to do????
yogeshrrc 9-Dec-14 13:17pm    
i am getting error my code is here plz help

Dim mydocpath As String = "~/Files/"
' Create a string builder and write the user input from the textbox to it.
Dim sb As StringBuilder = New StringBuilder()
sb.Append(Editor1.Content.ToString)
' Open a stream writer to a new text file named "UserInputFile.txt" and 'write the contents of the stringbuilder to it.
Using outfile As StreamWriter = New StreamWriter(mydocpath + pid + ".txt", True)
filep = outfile.ToString
outfile.Write(sb.ToString())
End Using
/\jmot 9-Dec-14 13:23pm    
what's the Error message??
you need to search on Google for small problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900