| | |
create pdf or word file from within c#
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 164
Reputation:
Solved Threads: 1
@ hollystyles
firstly thank you. although it is a bit to soon to speak, i believe that you have provided a solution.
i of course have to learn the arcane formatting but i believe that it cannot be more difficult than learning html.
just to be sure. csharp can do rtf and rtf has special formatting which i can learn from the link you posted and then the rtf file can be opened from word? if that is so then i believe you have helped me a lot.
about the other links. i did look at them but they were not very practical. couple of years and 2007 was just not an option. but thank you for your help. i believe the last link is just what i need. i really appreciate it.
firstly thank you. although it is a bit to soon to speak, i believe that you have provided a solution.
i of course have to learn the arcane formatting but i believe that it cannot be more difficult than learning html.
just to be sure. csharp can do rtf and rtf has special formatting which i can learn from the link you posted and then the rtf file can be opened from word? if that is so then i believe you have helped me a lot.
about the other links. i did look at them but they were not very practical. couple of years and 2007 was just not an option. but thank you for your help. i believe the last link is just what i need. i really appreciate it.
... what society overwhelmingly asks for is snake oil. Of course, the snake oil has the most impressive names —otherwise you would be selling nothing— like "Structured Analysis and Design", "Software Engineering", "Maturity Models", "IPSE", "MIS", "OO", "BPRE".... by Edsger W. Dijkstra
•
•
•
•
csharp can do rtf and rtf has special formatting which i can learn from the link you posted and then the rtf file can be opened from word?
Finally, yes Microsoft Word can open RTF files.
Best of luck with your solution. If you get stuck come back to this thread any time.
Just a suggestion - I code stuff that puts data into MS Office apps - PowerPoint, Excel and Word. You are better of doing it with VB then C#. We do all processing in C# and then use VB to create the documents at the end. With Word this does the table:
Then you can literaly go cell by cell to edit the values
This inserts and formats paragraph of text
in the above, pres options is not something I am willing to discuss in details but basically user's settings regarding formatting.
I am a big fan of C# but with office related stuff, VB is much easier. As far as PDF conversion goes - I did this by implementing someone else's libraries, I think it costed us something like $5000.00 for an unlilmited development licence, but saved me tons of work.
C# Syntax (Toggle Plain Text)
Dim trange As Word.Range = _wordDocument.Paragraphs.Item(ParagraphCount()).Range _wordDocument.Tables.Add(trange, row, col)
This inserts and formats paragraph of text
C# Syntax (Toggle Plain Text)
With _wordDocument.Range.Paragraphs.Item(ParagraphCount()).Range .Text = "This is a simple text to be added as paragraph" .Font.Size = presOptions.FontSize .Font.Name = presOptions.FontFamily .Font.Italic = presOptions.Italic .Font.Bold = presOptions.Bold .Font.Underline = presOptions.Underlined .Font.Color = RGB(r, g, b) .Paragraphs.Alignment = alignment End With
I am a big fan of C# but with office related stuff, VB is much easier. As far as PDF conversion goes - I did this by implementing someone else's libraries, I think it costed us something like $5000.00 for an unlilmited development licence, but saved me tons of work.
===========================
can you repeat the part of the stuff where you said all about the things?
can you repeat the part of the stuff where you said all about the things?
![]() |
Similar Threads
- create pdf from excel etc. visual basic 6.0 (Visual Basic 4 / 5 / 6)
- How to create PDF file from VB (Visual Basic 4 / 5 / 6)
- Generate Report as PDF and Excel file (Java)
- I want to Create PDF file from Delphi,Pls help me (Pascal and Delphi)
- Find word in file!! (C++)
- How to COmpare a word file and an XML file (C#)
- Creating PDF in MS Apps fails (Windows NT / 2000 / XP)
- Reading pascal file and searching for a particular word in that file (Pascal and Delphi)
- How to write the new line existing pdf file using php (PHP)
- how to upload a ms word file and store it in sql table (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: Centralized data in .NET?
- Next Thread: database connectivity
Views: 20273 | Replies: 14
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox class client color control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






