create pdf or word file from within c#

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2007
Posts: 164
Reputation: Ravenous Wolf is an unknown quantity at this point 
Solved Threads: 1
Ravenous Wolf Ravenous Wolf is offline Offline
Junior Poster

Re: create pdf or word file from within c#

 
0
  #11
Sep 28th, 2007
@ 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.
... 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
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: create pdf or word file from within c#

 
0
  #12
Sep 28th, 2007
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?
Ok just to split hairs. C# is just a language, the .NET framework has classes that can write text to the filesystem. RTF is text. So yes you can programitically create RTF files by programing the .NET framework using C# syntax as demonstrated yes.

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.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1
Reputation: diegolo is an unknown quantity at this point 
Solved Threads: 0
diegolo diegolo is offline Offline
Newbie Poster

Re: create pdf or word file from within c#

 
0
  #13
Sep 29th, 2007
Hi,
I like the information in this thread. Like me friend in Australia I prefer to generate the pdf by myself, Now, Does anybody know how to generate 2D (Two Dimensions) bar code, like the one use by Fedex or UPS.

Thank you,
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 20
Reputation: tostrinj is an unknown quantity at this point 
Solved Threads: 1
tostrinj's Avatar
tostrinj tostrinj is offline Offline
Newbie Poster

Re: create pdf or word file from within c#

 
0
  #14
Oct 28th, 2007
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:
  1. Dim trange As Word.Range = _wordDocument.Paragraphs.Item(ParagraphCount()).Range
  2. _wordDocument.Tables.Add(trange, row, col)
Then you can literaly go cell by cell to edit the values

This inserts and formats paragraph of text
  1. With _wordDocument.Range.Paragraphs.Item(ParagraphCount()).Range
  2. .Text = "This is a simple text to be added as paragraph"
  3. .Font.Size = presOptions.FontSize
  4. .Font.Name = presOptions.FontFamily
  5. .Font.Italic = presOptions.Italic
  6. .Font.Bold = presOptions.Bold
  7. .Font.Underline = presOptions.Underlined
  8. .Font.Color = RGB(r, g, b)
  9. .Paragraphs.Alignment = alignment
  10. End With
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.
===========================
can you repeat the part of the stuff where you said all about the things?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 1,614
Reputation: scru has a spectacular aura about scru has a spectacular aura about 
Solved Threads: 131
Featured Poster
scru's Avatar
scru scru is offline Offline
Posting Virtuoso

Re: create pdf or word file from within c#

 
0
  #15
Oct 28th, 2007
Maybe he can try that XPS API I think it allows for programmatic reading writing of XPS and PDF and the new open Word format
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 20273 | Replies: 14
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC