Crystal Reports Viewer 4.6 For Visual Studio 2008

58 Comments

Crystal Reports Viewer 4.6 For Visual Studio 2008' title='Crystal Reports Viewer 4.6 For Visual Studio 2008' />Report appears blank in browser after deploying a Crystal Reports. NET web application. The main studio here was closed by ITV but operated independently as Studio 1 Facilities from the spring of 1993 until the autumn of. After surfing around the net, Ive found very little information regarding installation of VB6 on Windows 7. Most of the information out there is for Vista, and most. Programmer forums, Software Development, Web Development, developer resources, coding answers, blogs, articles, for programmers in ASP NET, C, Visual Basic, Java. The best female gymnasts in the United States faced off at the U. S. Classic, the final opportunity for gymnasts to qualify to the upcoming national championships. Recently I have seen many of these issues being reported on the forum and support incidents as well. Almost all the possible causes have already been discussed on forums threads and knowledge base articles. This article summarizes them all. Consider following scenario A Crystal Reports web application to view report in the web viewer, works fine from Visual Studio but when the application is deployed on IIS the reports appear blank. Crystal Reports version could be CR 2. VBPrograms/CrystalReports/image017.jpg' alt='Crystal Reports Viewer 4.6 For Visual Studio 2008' title='Crystal Reports Viewer 4.6 For Visual Studio 2008' />CR for VS 2. Visual Studio version. The first thing to do is to develop and deploy a sample application and see if it reproduces the issue. Follow the proper deployment procedure mentioned in the Crystal Reports. NET SDK Developer guide. A sample application eliminates the complexities of the actual application which may be an entire project. A sample is available here https smpdl. Information Management IM and Information Technology IT enable Transport Canada employees TC to work together electronically to meet the departments goals to. VB6/images/phone-book/Choose%20database%20in%20Crystal%20Reports.PNG' alt='Crystal Reports Viewer 4.6 For Visual Studio 2008' title='Crystal Reports Viewer 4.6 For Visual Studio 2008' />Ecsharpwebsmpl. Possible causes and solutions to the Issue Use only those versions of IIS and the browser which are supported by the respective version of Crystal Reports used. Take a look at the Supported Platforms documentation http www. Upgrade Crystal Reports runtimes. Uninstall previously installed CR runtimes, download and install the latest CR runtimes on the web server. Do not bind the session object on the first pageload. Instead of adding the Report. Document directly to a http session use below workflow. If not ispostback. Dim rpt as new reportdocument. Rpt. Loadpathtoreport. Session. Addreport, report. Reportviewer. reportsource rpt. Reportviewer. reportsource sessionreport. Handlers/DownloadFile.ashx?File=02298bb7-c073-412a-b37a-37ca6a33ee50.png' alt='Crystal Reports Viewer 4.6 For Visual Studio 2008' title='Crystal Reports Viewer 4.6 For Visual Studio 2008' />Clear the browser cache, browsing history. In case of IE 9 is used, try compatibility mode. Dispose the Report. Document object Clear the Temp folder. Delete all the temporary files. Dispose the Report. Document object after use, which also deletes the CR Temp files from the memory. Use the following code in the unload event of the page or the code can also be written in a button press event so that the disposing is ensured manually. Report. Document. Close. bo. Report. Document. Dispose. GC. Collect External or Ajax components on the same page It has been observed that sometimes if we put some external components such as some third party UI controls or even Ajax controls on the same page as Crystal Reports Viewer the execution of the Ajax components interferes conflicts with the execution of Crystal components causing the Crystal Reports viewer not to show up. To identify if this is the cause, try putting the Ajax controls and the CR viewer on different pages. Simple way to do this is redirect to the viewer page one the controls are loaded. This scenario could not be reproduced every time and in house and thus could not be escalated. If Datasets are used to pass the data to the report, make sure that the datasets are being populated after deploying the app. Many a times due to many possible reasons the data does not get populated in the dataset and thus the report shows up blank. The best way to check is to print the dataset contents on a datagrid or a web page and see if any data is actually getting printed. Use of 6. 4 bit applications tools to deploy the application and associated data connections Many customers dont follow the conventional ways to deploy the web or win apps. Instead, different tools are used like TFS, Publishing tools, Package builders etc. Few of them are available in both flavours i. If the Crystal Reports. NET application is 3. If the third party publisher is 6. In case of ODBC make sure that the DSN is 3. When browser displays a blank page, check the left bottom corner of the browser see if a yellow triangle is displayed, double clicking it displays the error. Bobj is undefinedThis simply means that the application is not able to find access the CR Viewer files. Server Error This mainly gets caused by IIS settings, check the IIS console for additional settings of the application Virtual directory or the application pool. Use the top right corner search box to get more info on above errors, there is a lot of documentation available. To get started, see this Getting started and moving ahead with Crystal Reports. NET applications. Using Crystal Reports Visual Basic 6 VB6This crystal report tutorial shows you how. Crystal Reports 4. Crystal Reports that. Visual Studio Visual Basic 6. Crystal Reports provides a. The basis. of a report is a database query. Crystal Report Tutorial Version It should be pointed out. Crystal Reports is quite old, and that this version and. Crystal Reports that have shipped with VB are generally. Seagate Software. Furthermore, CR. 4. MS Access databases higher than Access 9. Gomez Peer Pending on this page. That said. what you learn about designing reports with CR 4. Regarding the MS Access issue, later versions of Access 2. Access 9. 7 format. Installing VB6 Crystal Reports 4. Crystal Reports 4. Visual StudioVisual Basic 6. To install it manually, locate the CRYSREPT folder on your. CD for Visual Studio 6. COMMONTOOLSVBCRYSREPT. CD. In that folder, double click the file CRYSTL3. EXE. You will. be asked if you want to install Crystal Reports. Respond Yes. It will then tell. CR you can override the location if desired. Following. that, CR will be installed, and a few moments later you should get a message. The Sample Database. The sample database used for. Access 9. 7 format database. EMPLOYEE. MDB. EMPLOYEE. MDB contains three. Emp. Mast, Dept. Mast, and Job. Mast. The tables are structured. Emp. Mast table Field Name. Data. Type. Comments. Emp. Nbr. Auto. Number. Primary Key. Uniquely. Emp. First. Text 5. Employees first name. Emp. Last. Text 5. Employees last name. Dept. Nbr. Number Long IntegerForeign Key to PK of. Dept. Mast table. Identifies which department the employee works in. Job. Nbr. Number Long IntegerForeign Key to PK of. Job. Mast table. Identifies the employees job. Hire. Date. DateTime. Date the employee was. Dept. Mast table Field Name. Data. Type. Comments. Dept. Nbr. Number Long IntegerPrimary Key uniquely. Dept. Name. Text 5. The name of the. department. Location. Text 5. The departments location. Job. Mast table Field Name. Data. Type. Comments. Job. Nbr. Auto. Number. Primary Key uniquely. Job. Title. Text 5. The job title. description. Min. Rate. Number SingleThe minimum hourly rate. Avg. Rate. Number SingleThe average hourly rate. Max. Rate. Number SingleThe maximum hourly rate. Designing the Reports. Two reports will be. Annual Salary Expenses by Department. Annual Salary Expenses by Job. For the Annual Salary. Expenses by Department report, you want to show various fields from the. You also want. to show a grand total at the end of the report. A sketch of the design might. Annual Salary. Expenses by Department JOB. WKLY HRLY EMP EMP NAME JOB TITLE. HIRE DATE HOURS RATE ANN SALARY. DEPT XXXX XXXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXX XXX XXXXXXXXXX. XXXXXX XX. XX XX. XX XXX,XXX. XX XXX XXXXXXXXXXXXXXX XXX XXXXXXXXXX. XXXXXX XX. XX XX. XX XXX,XXX. XXDEPT XXXX. XXXXXXXXXXXXXXXXXXXXXXXX TOTALS XXX,XXX. XX. GRAND TOTALS XXX,XXX. XX Annual Salary. Download Descargar Libro El Tunel Gratis Pdf Software here. Expenses by Job DEPT. WKLY HRLY EMP EMP NAME DEPT NAME. HIRE DATE HOURS RATE ANN SALARY. JOB XXX XXXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXX XXXX. XXXXXXXXXX XXXXXX XX. XX XX. XX XXX,XXX. XX XXX XXXXXXXXXXXXXXX XXXX XXXXXXXXXX. XXXXXX XX. XX XX. XX XXX,XXX. XXJOB XXX. XXXXXXXXXXXXXXXXXXXXXXXX TOTALS XXX,XXX. XX. GRAND TOTALS XXX,XXX. XX This tutorial will start off. Annual Salary Expenses by Department. Once that is done, it will. Annual. Salary Expenses by Job report. With the report designs in. Crystal Reports Report Designer from the VB Add Ins. A registration form appears. Click the Cancel button. From the Crystal Reports. File menu, select New The Create New Report dialog. Click the Standard button. The Create Report Expert. Step 1 Tables tab open. Click the Data. File button The Choose Database File. Navigate to the directory where your database file resides. File. Name. Click the Add button, then click the Done button. The 2 Links tab then. Access Relationships. Move on by clicking the 3. Fields tab. The 3 Fields. Using the Add. button, select the desired fields from the Database. Fields listbox so that they appear in the Report Fields. Select the fields based on the initial design. For fields that are. Dept. Nbr field from either the. Dept. Mast table OR the Emp. Mast table, but not both. Select the following. Database Fields Select Dept. Nbr and Dept. Name. Dept. Mast table. Select Emp. Nbr From. Emp. Mast table. Skip down to the Job. Mast. table and select the Job. Nbr and Job. Title. Jump back up to the Emp. Mast. table and select the Hire. Date, Hrly. Rate, and Sched. Hrs. Your screen should look like. Still sticking with Tab 3. Report Fields in turn. Column. Heading textbox by default, the column heading is the same as the field. Specify the column headings. Report Field. Column Heading. Dept. Mast. Dept. Nbr. Dept Dept. Mast. Dept. Name. Dept Name. Emp. Mast. Emp. Nbr. Emp Job. Mast. Job. Nbr. Job Job. Mast. Job. Title. Job Title. Emp. Mast. Hire. Date. Hire Date. Emp. Mast. Itc Eras Ultra. Hrly. Rate. Hrly Rate. Emp. Mast. Sched. Hrs. Wkly Hours. Were still not done with. Tab 3. We need two computed columns, one for the employee name which will be. Emp. Last and Emp. First fields and one for the annual salary. Click the Formula button. The New Formula dialog box appears. Type Emp. Name in the. OKThe Edit Formula. In the Formula text area, type Trim. Right. Emp. Mast. Emp. Last, Trim. Right Emp. Mast. Emp. FirstYour screen should look like. Note Crystal. Reports has its own formula syntax, which differs from the syntax of VB and. Access expressions. You can scroll the Fields. Functions, and Operators listboxes above the Formula. Also, instead of typing everything. Formula text box. Click the Check button. If. you entered the formula correctly, the message No errors found will. Passing that, click the Accept button. The formula will then appear. Database Fields listbox as Emp. Name. With Emp. Name. Add button to add it to the Report. Fields list. In the Report Fields list, drag and drop Emp. Name so. that it appears under Emp. Mast. Emp. Nbr. Give Emp. Name a column. heading of Employee Name. Now we must create the. To do so, follow these steps. Make sure anything OTHER than. Emp. Name is selected in the Database Fields listbox. Click the Formula button. In the New Formula. Ann. Sal and click OK. In the Edit Formula. Emp. Mast. Hrly. Rate. Emp. Mast. Sched. Hrs 5. 2 click Check, then. Accept. Use the Add. Ann. Sal over from the Database Fields list to the Report Fields. In the Report Fields listbox. Ann. Sal formula so that it is the last field in the list. Give Ann. Sal a column heading of. Ann Salary. Click the 4 Sort. Select Dept. Mast. Dept. Nbr from the Report Fields list and click. Add button. Dept. Mast. Dept. Nbr then appears in the. Group Fields list. Repeat this process for Emp. Name. Your screen. Click the 5 Total. Within this Total tab, an inner tabbed dialog appears, with one tab for. On the Dept. Mast. Dept. Nbr tab, remove. Ann. Sal from the Total Fields list, as shown. What we are saying is that we want to print a subtotal for the annual. Still in the 5. Total tab, click the Emp. Name tab and remove all items. Total Fields list, as shown below. We dont want to print subtotals. We dont need to do anything. Style tab. For the title, type Annual. Salary Expenses by Department.