Click here to Skip to main content
15,893,989 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am generating word report using asp.net. I am exporting data from the database and replacing it with the placeholders in the word document. When i am retrieving the data from the database the string contains the "block character" (□) carriage returns which i want to eliminate? I have tried replacing it with chr(11), chr(13) but have not got any success. for example i have the following text
abc
xyz
then the current output i am getting is as follows:
abc
□ xyz
instead of
abc
xyz
on word report. Can you please provide me with a solution for the above issue?
Posted
Updated 26-May-11 2:44am
v2
Comments
Sandeep Mewara 25-May-11 5:15am    
Can you be a little more elaborate and explain what are you trying? (Update the question with details using 'Improve Question' link)
Sergey Alexandrovich Kryukov 25-May-11 9:58am    
Please don't post anything as Solution if it is not a solution.
Use "Improve question", "Add comment" or reply to a comment.
--SA

Try using Environment.NewLine rather than "\r\n".
 
Share this answer
 
v2
I have tried using it but the box (blocking character)still exists in the string. Is there any other way to eliminate the blocking character?
 
Share this answer
 

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