Solved

Crystal Reports and word document formatting within vb.net

Posted on 2006-06-30
9
590 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Author Comment

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

Author Comment

by:janjuama84
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

17 Experts available now in Live!

Get 1:1 Help Now