How to add a watermark to CSV [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is it possible to add a watermark to a Comma Separated Values file?
I have tried to add an image and word art to a Comma Separated Values file but it doesn't work.

No. CSV is plain text, and does not support binary content. It has no concept of watermarks, images, Word art, or anything else. If you can't add it in Notepad, you can't put it in a CSV.

CSVs are straight text files with no graphical association or connection whatsoever. It is impossible to add a watermark to a CSV.

Related

I need to break a file into multiple files, seperating at specific points in the file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Basically, I have huge files that should be many small ones. Within them there are lines that start with "O" which signify the beginning of a file and lines that "M" that signify the end.
What is the best way to make make sure that a program copies the "O" line and makes that the title of a new .txt file and then copies everything between (and including) the "O" and "M" lines and pastes that within the .txt file
The language doesn't matter too much I am just trying to figure out how I could go about this and I am having trouble - C# Novice here.
First, look into how to read a file in C#.
The static method System.IO.File.ReadAllText will help you here.
Then look into String.Split on how to split a very long string into seperate strings based on your own seperator.
Then look into creating different files, like here:
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/file-system/how-to-write-to-a-text-file
EDIT: since you're talking about huge files, you could do an iterative approach and read line per line, or read a certain number of bytes. You can look at File.ReadLine() or you can parse character by character, like with StreamReader.Read() for instance. (https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader.read?view=netframework-4.8) and https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/file-system/how-to-read-a-text-file-one-line-at-a-time)

Create a .txt with Password [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I write a program that create a file .txt in my Desktop. Now I want the file created has a password to read.
How to create a .txt with a password?
Try compressing it with 7zip and giving it a password while creating the archive.

How can I highlight specific words in a .txt file using scintilla or any other method in C#? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I am reading a text file using regex and I want to highlight text in that file. Is this possible using C#?
It would be possible to read the contents of a text file and display them in a window with words matching specific regex patterns highlighted. It would not be possible to edit the file to display those words as highlighted in any given text editor- .txt documents do not have formatting.

Maintenance Program with a txt file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to write an employee maintenance program (in C#) that can add, change and delete from a text file. I have the HTML all put into an .aspx file but I have NO clue on how to set it up to read from a text file and populate the input fields with the employee to maintain.
If I could get some insight on how to read a text file and populate the input fields(form fields) that would be great. Even a link that explains it since I haven't been able to find one. The text file will have to have a record ID as the first field so I know which one to grab for editing(to display) or deleting.
There's a toolkit of functions to manipulate files in the system.io.file class. That's a reasonable start for the project.
You might also consider using a database instead of a text file. They're designed to handle storage and retrieval of data that changes a lot. A text file is doing it the hard way.

Parsing pdf files [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have a requirement to split a large pdf document into smaller files based on the content of the file. We use BCL easyPDF to manipulate pdf files. easyPDF can split pdf documents based on a page number, but it cannot split the document based on the file content. Also it does not have a search function (as far as I can tell, if I am wrong please someone let me know.) to determine the location of the content.
Now can someone tell me how I can find the location of text in a pdf file using .net?
Thanks
You might try Docotic.Pdf library for your task.
The library can extract text from PDFs (with or without formatting).
Or you could just retrieve a collection of words with their bounding rectangles from PDFs. This should help you to find location of the text in a file.
Disclaimer: I work for the vendor of the library.
You need a PDF library in .NET such as iText.Net.
take a look at this question. there are links to some libraries that may satisfy your requirements
How to programatically search a PDF document in c#

Categories

Resources