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

Setting CrystalReport LogonServer Ms. Access without Password

$
0
0
Hello guys,
how to setting Crystal report LogonServer with Ms. Access as database ?
i use DAO to setting database on my .rpt..
i tried this script and says
"Run-time error '-2147189176 (80047e48)'"
"Logon Failed"
Code:

.Database.LogOnServer "p2sodbc.dll", "", "db.mdb", "Admin", ""
Please help..

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

Viewing all 518 articles
Browse latest View live


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