Solved

Crystal Reports and word document formatting within vb.net

Posted on 2006-06-30
9
601 Views
Last Modified: 2008-02-26
I have been able to successfully export my report to a word document, however, the formatting on the document file is not correct. I need to fix the formatting of the word document. I am using visual studio 2003 which has a crystal report component version 9. How can i do this without using a macro in vb.net?
0
Comment
Question by:janjuama84
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
9 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 17020535
In general there isn't anything crystal-related that you can do to fix the formatting.  By this I mean that the export to Word is a compiled dll that is going to behave the same way every time and doesn't have any flags or parameters that allow you to alter the way it works.  You can however make changes to your report that will affect the final output of the document file - adding / removing borders around fields, etc.

If you can be a little more specific about how the formatting isn't correct, I may be able to answer more directly.

frodoman
0
 
LVL 1

Author Comment

by:janjuama84
ID: 17020928
When i export the report to word document, forexample, all the text has border around them, thus in order to edit the file, either one has to clear all formatting, to edit it else its really hard to edit it. All i need is that when the exported word document file is opened, editing should be simpler, and not be done within the border.
0
 
LVL 42

Expert Comment

by:frodoman
ID: 17020967
Do you have borders around your fields within Crystal?  If so, there is no way to prevent them from being included in your Word document - the only way is to remove them from within your report.  This is an example of what I mean - you can change the report to get different results.
0
Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

 
LVL 1

Author Comment

by:janjuama84
ID: 17020985
I do have them in my report. How can i change it? Please advice.
0
 
LVL 1

Author Comment

by:janjuama84
ID: 17020999
However, actually i am using crystal report formulas to populate my fields. Perhaps, they have a border that might be causing it?
0
 
LVL 42

Accepted Solution

by:
frodoman earned 250 total points
ID: 17021015
If you rt-click on the field and select format you can get rid of the borders -- this applies whether it's a normal data field or if it's a formula.
0
 
LVL 101

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 17065808
UNfortunately when Crystal released CR9 they eliminated the export to Word document format and replaced it with export to RTF format (even though the option still says Word).  RTF includes the borders on fields where as the Word export didn't.  What you are really seeing is frames in the RTF document which make editting the document difficult.

mlmcc
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question