2
File temp = new File("C:\\Windows\\Temp\\Sample.csv");
FileWriter writer = new FileWriter(temp);
try {
    writer.append("Company Name" + ',');
    writer.append("Branch Name" + ',');
} catch (Exception e) {
    e.printStackTrace();
} finally {
    writer.flush();
    writer.close();
}

I am able to create csv file with this code successfully. What I need is I want to apply font color and style to this file content. Is there any way to do this?

1
  • Bold formatting should be used sparingly. Not for entire sentences or paragraphs of text. Commented Oct 3, 2013 at 5:24

1 Answer 1

1

CSV file dosen't support formatting. Write to a html or doc file instead.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.