Solved

Crystal Reports and word document formatting within vb.net

Posted on 2006-06-30
9
592 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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 100

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Report 2008 script 4 56
Crystal Reports Date Formula Failure 26 94
Formula to concatenate multiple boolean fields with a delimiter 4 44
Pull date to Group header 6 26
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now