![]() |
WDReportGen Frequently Asked Questions
About WDReportGenWhat is WDReportGen?What can I do with it? What are the main features? Can I make the complex report using WDReportGen? Do you have any server version which I can use on the server to generate the reports? What is the system requirement? InstallationHow to install it?How to uninstall it? Reporting with WDReportGenHow does it work?Where can I find some samples? What need I do to use samples? How can I use these samples? When I use samples, I receive a "Selected Collating Sequence Not Supported" error message. What is a report file? What is a report template file? What is a WRF file? What is a function? How can I test a SQL statement? When I execute a SQL statement, I receive an "ODBC driver does not support the requested properties." error message. How can I sort data? How can I have total? How can I group data? How can I make sub reports within the main report? How can I have sub-totals for each group? How can I create charts? How to use parameters? I need to change paths for both exported report and template location. Is there any way? Can I place the data into columns rather than rows? Does WDReportGen support text BLOB? How to create Microsoft Word reports with pictures? Do I need to execute more than 1 SQL statement in one report processing? How many SQL statements can I execute in one report processing? I want to programmatically change some of the functions in the wrf file. How? I do not want to save password in the WRF file. Can I use WDReportGen? I hope the report can not be modified. How can I do? SupportHow much will I pay for the technical support? Is it free?I have more questions - who should I write to? WDReportGen is a report generator for Microsoft ® Word ® that uses Microsoft Word as reporting tool and outputs reports in Microsoft Word document, HTML, XML, RTF or other format. If you know how to use Microsoft Word and write SQL statements, you can use WDReportGen to create all kinds of reports as you need. The report generated by WDReportGen is a Microsoft Word document or other format file, such as HTML.
Can I make the complex report using WDReportGen? Yes. This is a main feature of WDReportGen. The complexity might come from reports formatting as well as reports content.
You design reports like layouts, styles, formats directly using Microsoft Word. You can take full advantage of Microsoft Word including characters formatting, paragraphs formatting, bulleted and numbered lists, borders, shading, headers and footers, automatic formatting, style, graphics, diagrams, and more.
In one report, you can execute more than one SQL statement, and get data using different queries. Further more, you can create a temporary table, prepare data using many SQL statements including INSERT/UPDATE/DELETE/INSERT SELECT, and then make a report.
Do you have any server version which I can use on the server to generate the reports? No. But WDReportGen can be run on your desktop or server. So you can use WDReportGen on the server to generate the reports. If you want to run it in the background on the server, you need to run it in command line mode.
What is the system requirement?
Run the installation program, and follow the instructions to complete installation. If you don't have installed Microsoft Office, please install it first. If your environment is Windows 95/98 and Office 97, and you don't have installed VB6.0 run-time files, please install it. For Windows 2000, Windows XP, Windows 2003 and Office 2000 or later, you do not need to install VB6.0 run-time files because they are included in these OS and Office. To install VB6.0 run-time files, just download and run vbrun60sp5.exe. If you don't have installed ODBC Driver for the database you want to access, please install it. If your OS is Windows 95/98 and you don't have installed MS Data Access Components 2.0 (MDAC_TYP) or later, please install it. For Windows 2000, Windows XP and Windows 2003, you do not need to install MDAC_TYP because it is preinstalled in these OS. To install MDAC_TYP, just download and run mdac_typ.exe. You can uninstall WDReportGen from [Control Panel]. 1. Double-click the Add/Remove Programs icon in the Windows Control Panel. 2. Do one of the following:
Click WDReportGen in the Currently installed programs box, and then click the Change/Remove button.
Click WDReportGen on the Install/Uninstall tab, and then click the Add/Remove button. 3. Follow the instructions on the screen to complete uninstall. To create a report with WDReportGen, you should do as follows: 1. Create a report template file using Microsoft Word, define the layouts, styles, formats of reports. 2. Create a WRF file with a .wrf extension using WDReportGen. The WRF file tell WDReportGen how to extract data from database, and where and how to put data. 3. Run the WRF file to generate a report in Microsoft Word document format.
Where can I find some samples? After WDReportGen is installed, some sample reports are installed too. The sample reports include a sample database, some report template files (.doc) and WRF files (.wrf). They are located in the WordReport directory under \Samples.
What need I do to use samples? To use these samples, you must add a data source named "Report Sample", and specify the database "Sample.mdb". If you have not installed MS access ODBC driver, please install it first. Creating a System DSN for a Microsoft Access Database
The sample reports can be changed to adapt to your own needs.
When I use samples, I receive a "Selected Collating Sequence Not Supported" error message. This is a problem of multilanguage. You are trying to open a database or an object in a database that was created in another language edition of Microsoft Access. You can try as follow:
If you do not resolve the problem, please install or enable multilanguage support for your operating system. For more information, please refer to The report file is a Microsoft Word document generated by WDReportGen.
What is a report template file? To make a report using WDReportGen, you should create a report template file first. This report template is a Microsoft Word document that defines the layouts, formats and styles of the report. In the report template, you can input static content such as titles, descriptions, comments, a cover, a company logo, and set the format for the static content and data got from data sources. To generate a report with WDReportGen, you must create a WRF file with a .wrf extension. The WRF file contains information such as the name of the report template file, the name of the report file, log file name, data sources, parameters and functions. The WRF file tells WDReportGen how to get data from data sources and how to put data into a report. A function includes a SQL statement and some arguments. A function can be used to execute a SQL statement, and tell WDReportGen whether or how to add data into a report.
How can I test a SQL statement? You can test SQL statements using Microsoft Query that is a component of Microsoft Office. You can find it under the installation directory of Microsoft Office. "C:\Program Files\Microsoft Office\OFFICE11\MSQRY32.EXE" It probably is a wrong SQL statement. Such as a missing column, or syntax error. Use SQL to sort your data. In a SELECT statement, you can use the ORDER BY clause to have your results displayed in a sorted order. There are two ways. 1. You can add total using (Formula) fields of Microsoft Word, such as SUM(above). 2. You can use aggregate function in SQL statement.
(1) In the fixed table report, you can add total directly using a separate SQL. To group data in a report, you can use GROUP VARIABLE TABLE REPORT function. For more detail information, refer to WDReportGen Help and the samples customer_profile.wrf, invoice.wrf, product_catalog.wrf and sales_detail.wrf within WDReportGen.
How can I make sub reports within the main report? A subreport is a report within a report. A subreport would typically be used to perform one-to-many lookups such as Customer / Order / OrderDetails. To make sub reports within the main report, 1. Write a JOIN SQL statement to acccess data from two or more tables. For example, you can join Customers, Orders and OrderDetails tables. 2. Use GROUP VARIABLE TABLE REPORT function. For more detail information, refer to the samples invoice.wrf, product_catalog.wrf and sales_detail.wrf within WDReportGen.
How can I have sub-totals for each group? You can use aggregate function in SQL statement.
(1) Use aggregate function and GROUP BY clause, get summary data for each group, and insert results into a temporary table. For more information, refer to the sample "sales_detail.wrf" within WDReportGen. To create a chart in a report, you should create the chart in the template file. You can create a chart using Microsoft Graph. 1. First add a chart in the report template using Microsoft Graph. On the Insert menu, click Chart. 2. Enter the sample data into the datasheet of the chart. 3. Customize your chart, and choose the chart type and the various chart options. 4. Delete the sample data. 5. Change the chart to an inline shape if it is a floating shape. 6. Write functions in a WRF file to input the data. For more detail information, please refer to the sample monthly_sales.wrf within WDReportGen. In SQL statements, you can use parameters.
WDReportGen will replace the parameter name with the actual value before it submits the SQL statements to data sources. Example Define a parameter as follows:
Name: $CustomerName Title: Customer Name You can use the parameter name "$CustomerName" in SQL statements. The parameter name in SQL statements should be delimited by quotation mark. For example:
SELECT CompanyName ,CityName ,CountryName ,ContactName FROM Customers, Cities, Countries WHERE Customers.CityCode = Cities.CityCode AND Customers.CountryCode = Cities.CountryCode AND Customers.CountryCode = Countries.CountryCode AND CompanyName LIKE '$CustomerName%' ;
I need to change paths for both exported report and template location. Is there any way? You can use parameters in the path and name of the report file, template file and log file. For example, you define a parameter $CustomerID, you can name the report file as follows:
report\report_$CustomerID.doc report\$CustomerID\report.doc
Can I place the data into columns rather than rows? Of course, just write FILLORDER=col in REPORT function. For example, there are 1 field and 10 records, you can show them as 1 row and 10 columns on report.
Does WDReportGen support text BLOB? Yes, WDReportGen 2.2 or later support text BLOB.
How to create Microsoft Word reports with pictures? You can insert pictures into your report from using many popular graphics files WDReportGen.
WDReportGen will read the graphics files, insert them into the report, and set the inserted way, text wrapping style and size of the pictures.
Do I need to execute more than 1 SQL statement in one report processing? In most of reports, you just need to execute one SQL statement. But sometimes, you want to execute more than one SQL statement in one report processing.
How many SQL statements can I execute in one report processing? It is dependent on the license of WDReportGen you have purchased. For detailed information, see Licenses.
I want to programmatically change some of the functions in the wrf file. How? The WRF file is a text file. You can write a program to make a WRF file using C, perl or DOS shell, and then run WDReportGen to generate report. These steps can be written into a batch file.
I do not want to save password in the WRF file. Can I use WDReportGen? Yes. If you do not save a password in the WRF file, a login dialog box will appear when you run the WRF file in WDReportGen. You can input password interactively to log on to the data source. If you want to run WDReportGen in command line mode, you can input usernames and passwords in command line.
I hope the report can not be modified. How can I do? You can protect the generated report so that it can not be modified. To protect the report, select the Protect Report check box in the Configuration dialog box.
How much will I pay for the technical support? Is it free? Yes, it's completely free for all.
I have more questions - who should I write to?
|
Copyright © 2004 - 2007 LJZsoft Corporation. All rights reserved.