Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2006

Tip: Looking for answers? Try searching our database.

Need help - Trying to convert a crystal report to a .rtf file from my webform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Learner - 23 Jan 2006 20:13 GMT
HI Friends,
I am brand new to creating Crystal reports. But overcomed a lot of
problems and so far happy what i could accomplish, calling a stored
proc with a parameter in it. And i can see the results in the Crystal
Reports  in the front. Our client would like to be exported to a .rtf
file when an Export button is clicked on. I have no problem exporting
it to(actually there was a problem converting to .pdf or Excel, it goes
to the Exception block but i never had a chance to debug and find out
what the ex is!! but i still get the pdf document.I thought, OK some
thing is better than nothing) creating pdf / excel . But our client is
interested in to be abole to migrated it to a .rtf file rather. I get
the same message in a message box. A popping up a message box asking me
to open or save or cancel a .aspx page???!!!!

I am just wondering if some body had the same problem like i did.

Here is my code
***************************
Dim Stream As New MemoryStream

Stream =
rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.WordForWindows)

Response.Clear()

Response.Buffer = True

Response.ContentType = "application/rtf"

Response.BinaryWrite(Stream.ToArray())

Response.End()

***************************
Tahanks in advance.
-L
Christopher Reed - 25 Jan 2006 10:27 GMT
I believe you should be use RichText instead of WordforWindows as your
ExportFormatType.
Signature

Christopher A. Reed
"The oxen are slow, but the earth is patient."

> HI Friends,
> I am brand new to creating Crystal reports. But overcomed a lot of
[quoted text clipped - 32 lines]
> Tahanks in advance.
> -L

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.