Quantcast
Channel: VBForums - Reporting
Viewing all 576 articles
Browse latest View live

VS 2008 trying to add and expand a report.

$
0
0
Hi.
I am either trying to use a reportviewer on crystal report application or a reportviewer on a vb from in order to display a crystal report.
The report is already made to a rpt file.
I have succeed to display the report on a crystal report project but the problem is that the report viewer will only be expanded to a standard size, hence it cuts the report in half not displaying half of it's elements, width wide. I cannot for the life of me fix that. I can expand the report in height but putting the cursor to the end of the report and drag but that will not happen with width. There is a a standard 5 - | - | 6 in the ruler and it won't go further.
ON the other hand, using a vb form and dragging a report viewer will let me expand how much i want (the report viewer, not the report file itself) but there i cannot find a way to let the viewer choose the report file. All it has is to use a server uri.
I only need a way to make this report expand in any VS solution plan.
Any help?
Thanks.

[RESOLVED] SSRS report that uses a pivot table with dynamic columns

$
0
0
I have a task to take an existing stored procedure and make it an SSRS report. Note that I did not write the sp and don't understand it fully. It is making a pivot table. I think where the difficulty lies is the columns are dynamic and there can be a lot of them. The columns are a list of store numbers and if a particular store has no data, it is skipped. So let's say store numbers 1 through 10 exist in our database. If I run the sproc with one set of input, I may get a dataset back with columns for store number 1 and 2. Another set of input gives me data back for stores 1, 2 8 and 10. So the columns are always variable. (In reality, there are hundreds of stores, not a handful).

When I try creating the report in SSRS, by default it knows I have a field name ID0000, source name 0000 and fieldname ID9999, source name 9999. When I run the sp in SSMS, I get a boatload of dynamic columns and the first one is column name 0000 and the last is column name 9999. So what SSRS is doing kind of makes sense. I can manually add columns to the report, like 0001, 0002, and as I do, my report grows and looks more like the dataset returned by the sproc. But it is forcing me to explicitly list the columns. And with different input, maybe column 0002 won't have any data to report.

Is my explanation clear? Is my problem solvable? My boss is thinking that the dynamic nature of the sproc and pivot table perhaps can't be handled by SSRS.

[RESOLVED] VS 2008 trying to add and expand a report.

$
0
0
Hi.
I am either trying to use a reportviewer on crystal report application or a reportviewer on a vb from in order to display a crystal report.
The report is already made to a rpt file.
I have succeed to display the report on a crystal report project but the problem is that the report viewer will only be expanded to a standard size, hence it cuts the report in half not displaying half of it's elements, width wide. I cannot for the life of me fix that. I can expand the report in height but putting the cursor to the end of the report and drag but that will not happen with width. There is a a standard 5 - | - | 6 in the ruler and it won't go further.
ON the other hand, using a vb form and dragging a report viewer will let me expand how much i want (the report viewer, not the report file itself) but there i cannot find a way to let the viewer choose the report file. All it has is to use a server uri.
I only need a way to make this report expand in any VS solution plan.
Any help?
Thanks.

How to match line, marker and label colors in report viewer chart with multiple lines

$
0
0
Hi,

I need to make data point labels the same color as the line. Color of lines and markers set to Auto because number of lines in the chart will vary depending on user selection. I am using ReportViewer Chart in vs 2013. I cannot find documentation how to programmatically assign line's color to label color in expression of label color dialog. I cannot manually assign specific color because number of lines will vary.

Can someone help please?

Thank you

[RESOLVED] Error while printing the report

$
0
0
Hello All,
I have developed the software with Visual Basic 6.0. Database - MS Access. Reporting Software - Seagate Crystal Report 8.5
It was Running Perfectly before i reboot my Operating System(Windows 8).
But now the software is opening but when i click print the following error occurs.
Run Time Error '20728': F
After i Installed Crystal Report 8.5, the same problem occurs.

Then I googled about this problem. They told that the file 'cpre23.dll' should be pasted in system32 folder and registered with command prompt.

But i can't find that file(cpre23.dll) to download.
How can i get this file? or any other methods to avoid this error.

Thanks,
Kamal

List of dll for Crystal report XI for my client computer

$
0
0
Hello Guys,
I have a program with Crystal Report XI as reporting tools.
I need to know list of dll that needed to be registered on client's computer so my reports can works.

Thank you.:wave:

[VB.NET] Application-Defined Or Object-Defined Error

$
0
0
I am getting an error when trying to import something from the query and when it tries to generate the excel with data has been specified. As you see in the highlighted below on the code. Kindly advise on this matters.

Code:

Sub RemoveApostrophe()

    Dim Rng As Range
    Dim myCell As Range
    Dim count As Integer

    ActiveSheet.Range("A:A").Select

    Set Rng = Selection

    For Each myCell In Rng.Cells
        myCell.Value = myCell.Value

        If myCell.Value = Empty Then
            count = count + 1
            If count = 4 Then
                Exit For
            End If
        Else
            count = 0
        End If
    Next myCell

    ActiveSheet.Range("D:I").Select
    Selection.NumberFormat = "@"

    Set Rng = Selection

    For Each myCell In Rng.Cells
        myCell.Value = myCell.Value
        If myCell.Value = Empty Then
            count = count + 1
            If count = 7 Then
                Exit For
            End If
        Else
            count = 0
        End If
    Next myCell
End Sub

Crystal Report Datasource

$
0
0
Hello!

here is the scenario OLD sql sever 2008 DB name "bSvr" then
migrated to NEW sql server 2014 DB name "dbSvr"

in VS 2008 crystal report already changed from bSVR to dbSvr
and can see the data in design mode VS IDE

but when try to run the report still fetching the old server that is bSvr
how to correct this?

note:same table,schema except bSVR to dbSVR

Thanks

Crystal Reports - Trouble linking database

$
0
0
Hi there,

I'm quite a novice with Crystal Reports and cannot figure out what driver to use to link my .dbf file.

The database that I've been using is a VFP .dbc file and I used the Microsoft FoxPro VFP Driver.

I tried using this same driver as well as several others and nothing's working.


Please help,

Struggling Beginner

Crystall Reports - Run-time Download

$
0
0
I am developing on a Windows 8.1 64-bit machine and I created a Crystal Report in my VB app; however, when launching the form that has the viewer on it, I am told to download and install the run-time. Only problem is, when going to businessobjects.com to download it, I am unable to find it. Any suggestions?

Crystal Report: Failed to enable constraints. One or more rows contain values

$
0
0
Hi vbforums users!!

I have the following code:

Code:

  Dim rpt As New rptInvoice() 'Crear nuevo reporte
        Dim myConnection As MySqlConnection
        Dim MyCommand As New MySqlCommand()
        Dim myDA As New MySqlDataAdapter()
        Dim myDS As New timetracking2DataSet 'Dataset a modificar



        myConnection = New MySqlConnection("Data Source=xxxxx;Database=xxxxx;User ID=xxxx;Password=xxxxx;")
        MyCommand.Connection = myConnection
        'MyCommand.CommandText = "SELECT * FROM  BillInfo INNER JOIN ProductSold ON BillInfo.InvoiceNo = ProductSold.InvoiceNo INNER JOIN Customer ON BillInfo.CustomerNo = Customer.CustomerNo WHERE billinfo.invoiceno= '" & frmSales.txtInvoiceNo.Text & "'"
        MyCommand.CommandText = "SELECT * FROM  BillInfo INNER JOIN ProductSold ON BillInfo.InvoiceNo = ProductSold.InvoiceNo INNER JOIN Customer ON BillInfo.CustomerNo = Customer.CustomerNo WHERE billinfo.invoiceno= '" & frmSales.txtInvoiceNo.Text & "'"
        MyCommand.CommandType = CommandType.Text
        myDA.SelectCommand = MyCommand
        myDA.Fill(myDS, "BillInfo")
        myDA.Fill(myDS, "productsold")
        'myDA.Fill(myDS, "customer")

        rpt.SetDataSource(myDS)
        CrystalReportViewer1.ReportSource = rpt
        CrystalReportViewer1.RefreshReport()
        CrystalReportViewer1.Show()

in the field:

Code:

myDA.Fill(myDS, "productsold")
works great, but in the other 2 cases:
Code:

myDA.Fill(myDS, "BillInfo")
and
Code:

  myDA.Fill(myDS, "customer")
say me that Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

My database in
Code:

myDA.Fill(myDS, "productsold")
wont have Primary Key, but in the other 2 cases I have a primary Key.. any idea to fix this? :(

I have VisualStudio 2010 + MySQL
Best Regards!!

Crystal Report issue

$
0
0
I am working on visual studio 2005 (visual basic)
I have a table emp, i can load data on the windowform but fail to get data on crystal report. It shows only headers not data.
I make crystal report using wizard i choose the data which i want to report on, i select table from available data source and on next step when i want to browse data it shown empty. kindly help

Undisplaying Minimum Date

$
0
0
using formula field in crystal report.. What should I do so that the minimum date value in crystal report will not show?

Crystal Reports and Exporting to Excel

$
0
0
The accounting software that my company makes uses Crystal Reports Viewer ver 8.5

We often host the software for our clients... On a new setup, when reports are Exported to Excel 2010 - instead of seeing $0.00 we are seeing <Default Format>

My developers wrote the following to resolve the issue.

Note: Steps to resolve error related to this issue:

1) Open the report file with Crystal Reports.
2) Select all amount fields of the report, right click on it and select "Format Field".
3) Click on "Customize".
4) Change the field "Show Zero Values as:” from <Default Format> to zero or manually type 0.00 if needed trailing zeros(decimal format).
5) Click "OK" and save the report.

Six Million Dollar question - when I do the same export on my local machine running Win 7 and Excel 2010 - I don't have the issue with seeing <Default Format> .

The way my brain works makes me think there is a setting in Excel that would cure this... That would be a lot easier than having to tweak RPT files.

If it makes any difference, the Server is running Win Server 2003 and only has Excel and Word 2010 installed... My local Win 7 machine has the whole Office 2010 Pro installed.

Thoughts and Suggestion would be appreciated.

Reportviewer Adding up a column of values generated when report runs

$
0
0
VB,net 2010

Reportviewer

I have a sql db where the column is data type decimal. The report reads this column ('charge') and shows in a tablix. I created a column to the right of it which is a calculated field i.e charge x 20/100.

100 20
200 40
300 60

how is it possible to add up this column (120) since the column is not part of the dataset but a calculated field

thanks

[RESOLVED] Crystal Report issue

$
0
0
I am working on visual studio 2005 (visual basic)
I have a table emp, i can load data on the windowform but fail to get data on crystal report. It shows only headers not data.
I make crystal report using wizard i choose the data which i want to report on, i select table from available data source and on next step when i want to browse data it shown empty. kindly help

Crystal Reports - Missing Tables in Database Expert

$
0
0
Hi there,

I have connected a vfp database to crystal reports and have been using it with no issues for about a year (maybe more).

I'm not sure what happened but all of a sudden I'm no longer able to see ANY tables when I open the database expert. The reports that I have created are still functioning fine and the connection is there but the tables are not...

Any help would be much appreciated. :confused:

- M

Simplest way to get ancient CR to run/print in .Net without buying new CR?

$
0
0
Issue: the original VB6 app that used Crystl32.ocx works fine on Win 7 64-bit EXCEPT that it won't print. They only use this app to print process instructions now so it's still running on XP.

I've upgraded the app to .Net (currently 2008 but I can go to 2013), which I believe has SOME CR capability but not sure how to use it or if it will work with such an old report (the RPT file is from 1998).

Is this as simple as adding a CR Viewer control? I only see the Microsoft ReportViewer control in the toolbox (on 2013).

Will I have to recreate the report (I've never done one)?

Or is there a simpler solution (eg, using SSRS on SQL Server 2008 R2)?

I'm fine with pulling the data out for the report. I just need advice on the easiest way of getting it into the proper format to print nicely without having to buy anything.

[RESOLVED] Crystal Reports Viewer Studio 2010 settings

$
0
0
I'm writing a program using VB.net 2010 and need to create/view a Crystal report. I haven't done this since the VB6 days so I'm a little rusty. I found and installed the downloads for Crystal Reports/Viewer.
I have a simple report and when I use the Crystal Reports Viewer to display my report I get a lot of "wasted space" on the left section of the window. I think it's called a "side panel". What setting do I need to make it "hide"?
Thanks in advance, Bill
Code:


Dim cr As New ReportDocument

        cr.Load("C:\vbnetCRtest\crchecks.rpt")
        Me.Cursor = Cursors.WaitCursor
        CRV1.EnableDrillDown = False
        CRV1.DisplayBackgroundEdge = True
        CRV1.DisplayToolbar = True
        CRV1.ShowGroupTreeButton = False
        CRV1.ShowPageNavigateButtons = False
        CRV1.ShowParameterPanelButton = False
        CRV1.DisplayStatusBar = False
        CRV1.ShowLogo = False
        CRV1.ShowRefreshButton = False
        CRV1.ShowCloseButton = False
        CRV1.ShowCopyButton = False
        CRV1.ShowZoomButton = False
        CRV1.ActiveViewIndex = 0
        CRV1.ReportSource = "C:\vbnetCRtest\crchecks.rpt"
        CRV1.Visible = True
        Me.Cursor = Cursors.Default

Compare FineReport and Crystal Reports

$
0
0
FineReport reporting software for reporting data to show the complexity of the format and web reports by multi-source fragmentation, irregular grouping, two-way extension to easily drag and drop do complex formatting reports, production reports from out complex SQL and expressions, no need to develop programming, greatly improving the efficiency in the production report.
Compare to Crystal Reports, FineReport statements either in report design,data presentation, or form, application integration, etc., Obviously has distinct advantages.
Report Design
In the report design, the advantages that FineReport reporting tool is mainly reflected in the following aspects:
• Multi Data Sources
FineReport report design naturally supports multiple data sources (set), with a report of data simultaneously from multiple data tables, multiple different databases, or multiple different user-defined data views, and then directly to operate and calculate with each other in the report to create a final report.
And a way to connect data sources are also diversity, supports JDBC, JNDI data sources, such as Oracle, DB2, SQLServer, MySQL, and other mainstream database, custom data source program, the text data source, Hibernate data source, Remedy, etc. At the same time the data source has unlimited scalability to support WebService, SOA and other standard data.
Crystal Reports only supports a single data set, in theory, support for multiple sets depends on the computing power of the database (fork by the joint or write stored procedures, etc.), multiple database support is generally difficult. Another approach is to disguise the multiple data sources into a single data source finishing, and then perform other operations, not multiple data sources in the true sense.
• Packets Adjustment, imcomplete Separate packets
Report data packets are among the most common way. Packet FineReport reporting tools, is built on a cell basis, so removing grouping, changing operations such as grouping field, you only need to operate the cell, independent of the other data in the report. In addition, in many cases, the data is not completely enumeration type grouping, but some fixed ranks, or other forms grouped by segment, FineReport report provides a user-defined groups, you only need to add some conditions to achieve an irregular grouping purposes.
Crystal Reports, all of the data model is divided in the ribbon bar which, when you delete a packet grouping related summary unit will be deleted, adjust the grouping field can only delete the reconstruction, the entire operation is relatively cumbersome, and will lead to duplication of efforts. Irregular grouping in Crystal Report which is just modify the group name can not be modified to calculate the other to follow the data.
• Data expansion and crosstabs
Extended FineReport data reporting tools, is bidirectional, that is the ranks of the symmetrical and consistent ability transverse and longitudinal directions, you can easily create cross Report (multi-layer) can be produced in the same style sheet counterparts complex header.
Crystal Reports making cross-reporting method is the use of a special cross-table model, whose header is generated automatically follow the wizard, the lack of flexibility.
• Report slice
Among complex reports, the report is divided into multiple pieces phenomenon is very common that the entire report is a big report rules, but can actually be divided into several small areas of irregular, seemingly no connection between the various regions, but the data can be correlated between the actual. FineReport With support for multiple data sources, as well as expand the ranks of the data, thus supporting the report repeat or mutual independence of each piece operation, and allows mixing fixed and variable slice.
Crystal Reports single-table model does not support fragmentation. For the fragmentation of the report, a process approach is programmed in advance to prepare the data, the other is a report by the sub-stitching to complete. Treatment rather cumbersome, and these two treatment methods are not always able to meet the requirements, the design needs of report formats.
• Interbank Group Operational
Reports often requires operation interbank group, as compared with the previous period, more than last year and so on. Cell-level coordinate concept FineReport report accurately reference any cell after an extension, then the expression common to write these interbank group operations.
Crystal Reports can easily support some fixed interbank operations, such as the cumulative value over the previous period and so on, more complex set of calculations can only be programmed in advance interbank prepare data.
Reports Display and Output
• Smilar Excel display style
Display FineReport reporting tools style, is completely analogous to Excel,the edit mode cell line alignment, which greatly facilitated the design and output of the report, and the inner grid property unit compares the freedom and flexibility, the format can be arbitrarily complex reports.
Crystal Reports are drawn using drag and drop controls reports, this program did not reflect the form of regularity, when the meter complex, the alignment is very cumbersome. And with the resolution related to the alignment of the table on the screen, on the page and print time and can not be aligned.
• Input Output
FineReport report supports single or bulk import Excel files, so you can by business people, pre-drawn like a good table, improve the efficiency of the production of the report, and bulk import, reduce repetitive work more. The generated report files can be exported as HTML, undistorted PDF, a variety of styles Excel, Word, CSV, SVG, and text files. In addition, the built-in template files can be generated.
Crystal Reports can not support the import Excel files, can only read data from Excel. It generates HTML generally only support IE; often only data loss format when exporting EXCEL, individual tools to complete relatively careful, but also heavily dependent on the degree of alignment when drawing tables, generated text only format, including data loss, can not support the character terminal report printing needs.
• Package Printing
FineReport statements are depicting underlay, absolute positioning manner Printing template rendering, users can scan bills will come in as the background image Printing with Report Designer position display data can pinpoint the location of the data.
Crystal Reports can only use the exact measure of the program, a good amount of size to set the size of the bill Printing form controls, tedious operation inefficient.
• Paging print, columns, and other print control
FineReport report provides all the print control: According to the group, or any other way to force a page break, make up an empty line.
When the tab title can be repeated, not only the head of the table, the table wide reports, which left the header can also be set to repeat display paging.
Data can be freely column, a longer report, you can follow the line of columns to display a multi-column; more columns report, you can use the column column to multi-line display them to the same page.
Crystal Reports, generally only support header repetition, not mandatory paging, make up blank lines, columns and other operations.
Forms
Form backfill to use Crystal Reports can not support the function . FineReport support backfill based on pure HTML forms, supporting all major browsers.
• Edit Style
Forms provide general text editing boxes, check boxes, drop-down list boxes, drop-down calendar, file uploads.
• Automatic calculation
Forms can support a similar function automatically calculates the EXCEL program is completed automatically calculated based on user settings to generate JavaScript expression at the front. Automatic calculation can be cross-table, multi-sheet operation and calculation with each other.
• Data consistency check
Support for backfill data validity check.
• Extension data
Allow the report between the cell and any corresponding database fields, and has the ability to automatically expand. Support any format forms backfill data.
• Backfill directly to the database
Users fill in the data, which are stored in the database directly, without intermediaries.
• Multi-level summary reporting
Report form is also statistical tables, cell data can have different origin and destination, so you can start out lower body aggregated data coupled with additional modifications after the fill to the parent database.
FineReport reports, ten times the efficiency of its watchmaking tradition reporting tool to foreign products represented.
Deployment and Application Integration
• WEB deployment
Service program FineReport reporting tools to JAR package form, can be labeled with the application package together unified deployed on an application server, installation is very easy.
Crystal Reports is a standalone server program needs to be installed separately, report files should also be deployed individually, together, and the application can not be updated.
• Support environment
FineReport statements using pure JAVA development, regardless of the Report Designer or servers can be deployed JDK support all operating systems, there are JDBC database interface, especially for UNIX / LINUX support and Windows are exactly the same. Rather than JAVA reporting tool in this respect is much more difficult.
• Rich API interface
FineReport reporting tools to the application programmer provides a clear structure, rich JAVA API calls, the report can be extended and depth control.
Crystal Reports using a separate server program, the application interface is completed by a network protocol, scarce number of interfaces, control is weak, but also seriously affect performance. HTML charts and other external resources often uses CGI primitive way, will leave difficult to manage temporary files in the file system.
• Page Integration
FineReport generated HTML reports can easily be placed in the embedded application page (JSP), and from the browser do not see the integration of third-party products.
Crystal Reports has its own separate gateway mechanism, it is difficult to embed the generated HTML pages at random, often have to bring out its own report management interface products, it is difficult to achieve seamless embedding.
- See more at: http://www.finereport.com/en/product....rc2ECPZw.dpuf
Viewing all 576 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>