Questions tagged [stringwriter]

StringWriter class could refer to java.io.StringWriter (part of the the standard java io library ) or to System.IO.StringWriter (part of .NET framework)

StringWriter class could refer to java.io.StringWriter (part of the the standard java io library ) or to System.IO.StringWriter (part of .NET framework)

76 questions
0
votes
2 answers

FileStream action writing empty file

I have an ASP.Net MVC 4 app that is downloading an empty file. What am I missing? Controller: public class HomeController : Controller { public ActionResult Index() { return View(); } public FileStreamResult ICS() { …
drewwyatt
  • 5,989
  • 15
  • 60
  • 106
0
votes
0 answers

Datatable row-wise iteration and printing

I have a datatable that I need to iterate row-wise and print it using iTextSharp in ASP.NET using C#. For each row retrieved in parent datatable dt, I print a child table dt_child. The dt_child is being printed perfectly. But the rows of parent dt…
divinediu
  • 423
  • 1
  • 9
  • 33
0
votes
2 answers

New Line in StringWriter

I need a new line in my StringWriter. It is just not happening. Please help. stringWrite.WriteLine(Header); stringWrite.Write("\n ========================================================"); Header is a string. I tried…
divinediu
  • 423
  • 1
  • 9
  • 33
0
votes
2 answers

save file as excel is folder using string writer

I have created excel file from asp.net table and am now able to download it. Now I want to save this excel file on the server to be able to use it. I have tried to use string-writer to save the file folder, without succeeding. Here is my code which…
sp_m
  • 2,647
  • 8
  • 38
  • 62
0
votes
1 answer

StringWriter write to folder

Good Afternoon. I want to use the StringWriter to write the new file to a network folder. Can anyone give me some examples using the code below on how to do this? It's my first time working with the StringWriter class. public static final…
WHAT
  • 11
  • 5
0
votes
4 answers

Please tell me how to find and replace particular word in a file using vb.net

i have created a template xml file witch contain some words like {contentname}. i need to replace such a tags with my values. please tell me how to search such a words and replace using filehandling in vb.net my xml templatefile is like this: System.UnauthorizedAccessException: Access to the path 'c:\windows\system32\inetsrv\Dialer' is denied. at …