Visual basic with crystal report 8.5 error on reporting

i am dvelping a program base on accounting
Connection Using ADODB through record set...
when view the report through compiler using run vb project method the data show is ok but when run application through MDi form the crystal report show blank data...
my code in mention below
plz help
Dim Ac2 As String
mDATE1 = Format(DTP.Value, "MM/dd/yy")
mDate2 = Format(DTP1.Value, "MM/dd/yy")
Ac2 = TxtCode.Text
Set Rs = New ADODB.Recordset
Rs.Open "delete * FROM tmp1", Con, adOpenKeyset, adLockPessimistic
Set Rs1 = New ADODB.Recordset
Rs1.Open "select  (opdr),(opcr) FROM acoding where acode= '" & TxtCode.Text & "'", Con, adOpenKeyset, adLockPessimistic
Set Rs2 = New ADODB.Recordset
Rs2.Open "SELECT Sum(dr)-sum(cr) as opening from ledger where date < # " & mDATE1 & "# and pcode = '" & TxtCode.Text & "'", Con, adOpenKeyset, adLockPessimistic
Set Rs3 = New ADODB.Recordset
Rs3.Open "select* FROM ledger WHERE DATE BETWEEN #" & mDATE1 & "# AND # " & mDate2 & " # AND pcode between '" & TxtCode.Text & "' AND '" & Ac2 & "'", Con, adOpenKeyset, adLockPessimistic
Set Rs = New ADODB.Recordset
Rs.Open "select * FROM tmp1", Con, adOpenKeyset, adLockPessimistic
    If Rs2.RecordCount <> 0 Then
        DR1 = IIf(IsNull(Rs2!opening), 0, Rs2!opening) + IIf(IsNull(Rs1!OpDR), 0, Rs1!OpDR) - IIf(IsNull(Rs1!OpCR), 0, Rs1!OpCR)
        Rs.AddNew
        Rs!Des = "OPENING BALANCE"
        Rs!pcode = TxtCode.Text
        Rs!DR = IIf(DR1 > 0, DR1, 0)
        Rs!cr = IIf(DR1 < 0, DR1 * -1, 0)
        Rs.Update
    Else
        Rs.AddNew
        Rs!Des = "OPENING BALANCE"
        Rs!pcode = Rs2!pcode
        Rs!DR = IIf(IsNull(Rs1!OpenDR), 0, Rs1!OpenDR)
        Rs!cr = IIf(IsNull(Rs1!OpenCR), 0, Rs1!OpenCR)
        Rs.Update
        End If
If Rs3.RecordCount > 0 Then
    While Not Rs3.EOF
            Rs.AddNew
            Rs!pcode = Rs3!pcode
            Rs!vtype = Rs3!vtype
            Rs!VNO = Rs3!VNO
            Rs!DR = IIf(IsNull(Rs3!DR), 0, Rs3!DR)
            Rs!cr = IIf(IsNull(Rs3!cr), 0, Rs3!cr)
            Rs!Date = Rs3!Date
            Rs!Des = Rs3!Des
            Rs.Update
    Rs3.MoveNext
    Wend
    End If
cr.ReportFileName = App.Path & "\reports\latif.rpt"
cr.WindowState = crptMaximized
cr.Action = 1
end sub
through Debug mod data all data is show but
when run without debug mod  crystal report show data blank..
proceed is that
vb6 delete tem1 table from access
opening sum from ledger table
opening sum form A/C coding table
first add opening in tem1 table
then add all sepsfic data from ledger table to temp table
after that data show in crystal report
kindly Help

Hello,
Thank you for your post.
Based on your description, I am afraid that the issue is out of support of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I suggest that you can consult your issue directly on SAP Crystal Reports:
http://scn.sap.com/community/crystal-reports/content?filterID=content~objecttype~objecttype[thread]
  for better solution and support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • How to save a Module in Visual Basic with Excel for Mac 2011

    On the MS support pages it shows how to create a module that will turn digits into written words:
    http://support.microsoft.com/kb/213360/en-us
    so if you enter $32.50 it will convert it to Thirty-Two Dollars and 50 cents. Perfect for batch payroll work!
    Using Excel for Mac I open the Visual Basic editor (which I clearly know nothing about!), paste in the text provided by Microsoft and it works perfectly.
    BUT... if I close that workbook that module is gone.  I can't use it again in the next workbook.  Surely there's a simple way to save the module so it is available in all future workbooks... yes?  This one has stumped several MS techs so far.

    Hi,
    I have no Excel for Mac, so I can't test this issue .
    Did you save the Excel workbook as Excel Macro-Enabled workbook(*.xlsm)?I guess Excel would prompt you if you want to save the VBA code when you close the workbook.
    Wind Zhang
    TechNet Community Support

  • How can i measure the transmision time in gpib with visual basic with more precision if i use time() function?

    I want to take a measurement of the time that i use to make a gpib transmision in a Visual Basic program,i use the function TIME() to take the time in the begining and other time in the end,but this way only give me precision of seconds, and i want miliseconds,can i use other function,other way?
    Can answer in spanish?

    Try using GetTickCount() API function, which provides millisecond precision. If you need more precise timer, try using QueryPerformanceCounter() function.
    Makoto

  • Report painter execution error - KH014  "Report does not exist".

    Hi All,
    I customized one report in FSI3 and used SE43 to create a t code for this report. In the development system, report will be executable from this t code.
    Transport requests are successfully transported from development to production without any error. But on production when I tried to execute the report, I am getting the error KH014 - "Report does not exist".
    While checking in production I found that the report was missing from report tree in FSI3 and as a result the customized report cannot be executed. As per basis guys there was not a issue in request transportation.
    Has anyone encountered similar problem? How was it resolved?
    Thanks.
    Prashant

    Hi Mikko,
    Thanks for your reply but your solution is not working.
    Hi Stacy,
    I can execute the report from t codes like FSI3 & FSI0 in development.
    I used SE43 for t code creation. At the time of t code creation there is a option called "Drilldown" under Report type heading, In drilldown option I selected my report from report type 002 (Financial Statement Key Figure) and created the t code. After this I transported both the request to production server.
    Please let me know if this is wrong method or there is any other option to transport this report in Production.
    Thanks & Regards,
    Prashant

  • How to connect visual basic with sap

    hi
    i want to connect vb system and sap system.can any1 help me?

    Hi
    Using BAPIS u statrt communicating with vb or java --etc.
    For example,
      U want tot connect vb .U need to use the component
    SAP.BAPI.1 Component.
    U design a form in vb,
    Declarations:  
    Public obj As Object
    Public boOrder As Object
    Public oHeader As Object
    Public oHeaderde As Object
    Public oHeaderup As Object
    Public oHeaderin As Object
    Public conn As Object
    Public ovalues As Object
    Public oReturn As Object
    Public x As String
    In form load event:
      Private Sub Form_Load()
    On Error GoTo err1
    Form_Timer
    Set obj = CreateObject("SAP.BAPI.1")
    Set conn = obj.connection
    conn.logon
    Set boOrder = obj.GetSAPObject("ZBAPISTUD(bapiname)")
    Set oHeader = obj.dimas(boOrder, "ZbapiSearch(bapi method name)", "STUD")   'searching the record
    Set oHeaderde = obj.dimas(boOrder, "DeleteStud", "STUD") 'deleting the record
    Set oHeaderup = obj.dimas(boOrder, "ZbapiUpdate", "STUD") 'updating the record
    Set oHeaderin = obj.dimas(boOrder, "CREATESTUD", "STUD") 'inserting the record
    Exit Sub
    err1:
      MsgBox Err.Description
      DoCmd.Close
    End Sub
    Every bapi is must a remote enabled fm. Every bapi method linked with a rfc fm.
    If it is helpful rewards points
    Regards
    Pratap.M

  • Report Server Internal Error During Report Generation

    Hi,
    We are running 9iAS on Sun Enterprise server. Though we have
    successfully installed Form & Report Servers. The Form Server is
    running perfectly but while reports are generated from Report
    Server, it gives Internal Server Error (HTTP Error Code: 500) --
    The server has encountered error or misconfiguration...
    Checking the hard disk, we found that the report in PDF file has
    been generated but it gives error being delivered.
    We have no idea what had happened. Can someone kindly enlight me
    some possibilities?

    I guess to start with the obvious, IE 500 Internal Server Error resolves to Permission denied: 'GetObject'.
    Before chasing that error, what version of CR and .NET are you using?
    Once we determine that you are using a version of CR that is actually supported on the OS, we can move on to [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] to see if it tell us something - look for "Access Denied" messages.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How do I use the Oracle Developer Reporting Control in Visual Basic 6.0?

    I was wondering how to use the Oracle Developer Reporting Control componant in Visual Basic 6.0 to generate reports in Oracle Reports? Any help would be appreciated.

    Hi Rohit,
    Would like to ask you some questions about the oracle report with Visual Basic.
    1. I have a report built in oracle report. Currently there is a Visual Basic program want to pass some parameter to this report. Can Visual Basic program pass the parameter to this oracel report?
    2. Based on yr answer, do i have to installed the oracle report? or just copy and register the Rwsxa60.ocx (i'm using oracle report 6i) in the PC? So can i use this activeX control.
    3. Is this activeX control similar to Crystal report object which can found in VB?
    4. Is there an example/guide on how the Visual Basic pass the parameter to oracel form?
    Your answer will be much appreciated.
    Thanks.
    Regards,
    Hock Leong

  • BW reporting, Excel macros, Visual Basic

    HI  friends,
    I want some information want in BW reporting, Excel macros, Visual Basic with Finance background.I want some good notes .thanks for advance.
    Bye
    habeeb

    i am not sure what exactly you are looking into as there are many variants of reporting..
    hope the below link would answer few of your queries
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/8d8d5e6413614fe10000000a1553f7/frameset.htm
    reward points if you find it useful
    regards
    GulshanRaj

  • Report Viewer Configuration Error

    Hi,
    I manage a TFS 2010 Server that makes heavy use of Reporting Services, and I have a user that reported the following error
    when attempting to open a report in the Microsoft Visual Studio Report Viewer:
    Report Viewer Configuration Error
    The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Resevred.ReportViewerWebControl.xsd" type = "Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer,
    Version=10.0.0.0, Culture=neutral, PublicKeyToken=################" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*"
    path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebServer, Version=10.0.0.0, Culture=neutral, PublicKeyToken=################" /> to the system.webServer/handlers section for
    Internet Information Services 7 or later.
    Has anyone seen this error before, or have any advice on finding a solution?
    Thank you.

    Hi HealthServices3300,
    You can try to install "Microsoft Report Viewer 2010 Redistributable Package" on your server to check if it works for you.
    For the web.config info, it's for web application. And I'd like to know how did you create the report, and whether the report is for a web app or reporting service. From the error message and report, seems it's not a TFS issue. If it's SSRS project
    issue, please post this issue to
    this forum. If it's a report viewer control issue, you can post this issue in
    this forum for a professional response. After that, please update this thread with the new thread link. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ActiveX privileges different in Labview than Visual Basic

    Trying to make some ActiveX calls to a 3rd party app with LV 7.1.  I am able to access many methods and properties, but one of the methods I call gives me a "insufficient user privileges" error from the app.  Realizing y'all know nothing about what causes that error in the app, my question really is "If I write the exact same set of calls in Visual Basic, I don't get the error, why not?"  What does LV do differently at that level?  I have looked at the Dcom configuration manager and have set security to none on all apps, but again, since VB has no problem, it is unlikely that it would help, and sure enough, it did not.  You may say, "ask the developers ", but none of then know how LV implements it's ActiveX so they say it is Labview's fault and of course NI will say it's an incomplete implementation of ActiveX.  Any ideas?
    thanks

    Hi ET,
    The behavior of your LabVIEW application is quite interesting since any
    true copy of the ActiveX script from another programming language into
    LabVIEW has always given the same results as with the text based
    program. However, one thing that could be the difference it the
    conversion of data types, especially when the Variant data type is
    involved. To further troubleshoot what is going on, please submit a
    simple example that shows the issue. I would prefer if you could submit
    the Visual Basic code and the equivalent LabVIEW VI, thanks.
    - Philip Courtois, Thinkbot Solutions

  • Error reading reporting point information

    Dear All,
    While i m  doing backflashing with the tcode mfbf recving a error messge in reporting piont this -
      Error reading reporting point information    kindlly update me how can i resolve this
    regards
    pritpal

    Dear pritpal.
    Check the rem profile at MRP view of Material master (MM02). the correct profile has been selected  sotaht it allows the RP backflush.
    To check  Rem profile allows RP back flush at OPS2.
    For Milestone confirmation  check wth controlkey which has  assigned at Routing operation (CA02)
    For Product cost collecter check with KKF6N.
    Regards
    Pradeep

  • How can a Visual Basic Application be used to read a Netscape LDAP server?

    I would Like to know if Visual Basic (ON AN NT WORKSTATION) can be used to access a Netscape LDAP Server (ON UNIX). And If so, will any API calls be necessary? Is there any documentation on using Visual Basic with LDAP?

    Hi Ryan,
    yes you can use VB with the nsldap32v30.dll or nsldap32v30.dll. You can get this from the iplanet page . The dll is inside the LDAP C SDK. Then, there's a 3 or 4 year old vb sdk with the declarations of the LDAP functions; but this seems not to be available in the web.
    Please send me a mail, I'll send you the doc and a sample vb prog.
    remove the nospam.
    [email protected]

  • TROUBLE VIEWING DYNAMIC .JPG WITH CRYSTAL WEBSITE VIEWER

    With Crystal XI using Website Viewer our report dynamic .jpg is not visible, only showing a red x.  It is working fine when previewed in Crystal or if printed as a .pdf from Crystal viewer but not directly Crystal Website Viewer.  The graphic location in the Format Formula Editor is linked to a SQL table.  Any help with this would be excellent.  Thanks, Jayne

    Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum
    or purchase a case and have a dedicated support engineer work with your directly

  • Error on Visual Basic 6.0 and Crystal Reports 9.2 on XP SO

    We need support to resolve an error on a system made with Visual Basic 6.x and Crystal Reports 9.2.
    Error '-2147417848 (80010108)'
    Automation Error
    Not always give these errors.
    Often occurs after request two reports followed and SO is XP
    When SO is Windows 2000 professional this error not occurs.
    These are versions of the products used:
    Versión Visual Basic:  6.0.9782
    Versión Cristal Reports:  9.2.0.448

    Hello,
    This forum is for community use and is not considered a support site. For assistance you need to purchase a case from our support site. But 9 is no longer a supported version so this is your only place to get assistance.
    Try downloading the only patches available from:
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90actxwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90dbexwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90devwin_en.zip
    ftp://ftp1.businessobjects.com/outgoing/CHF/cr90mainwin_en.zip
    Thank you
    Don

  • Error running reports from Crystal Server XI R2 with datasets

    Hi, sorry if my english is not good. I'm from Spain.
    I have a problem. I'm programming with Visual Basic .NET 2008.
    I'm using Crystal Reports Server and programming under Visual Basic to take reports from crystal Server, changing the tables from the report to datasets and scheduling this report.
    Crystal server change connections to CrystalReports.Dataset.
    Preview reports from server sends me an error "DataBase connector unknown"
    If I run this report (with datasets) into my VBNET application (into a  CrystalDecisions.Windows.Forms.CrystalReportViewer control), IT WORKS!!!
    I need help because I need to schedule these reports (to send them by email, export to PDF formats, ...)

    Reporting off of a dataset is reporting off of a disconnected datasource.  The reason your application works is beacuse you most likely populating a dataset in your application and passing it to the report at the same time.  When scheduling, there is no interaction with the report so unless the report is using an xml file on disk as its datasource, how can it retrieve data?
    To get around this, you can build a dll (.net data provider) that returns either a dataset or datatable and point your report to this dll.  this way, when the report is executed, it loads the dll which fetches the data for you.
    - so the first step is to compile a dll that returns a dataset or datatable.
    - to design your report off of this dll open the database expert and create a new ADO.NET connection.
    - in the File Path area, click the ellipsis ("...") button to browse to your dll and make sure the selected File Type is ".Net DataSet Provider".
    - once the dll is selected, you can choose the dataset/table returned by the dll.
    If your method in the dll is parameterized, it will add a parameter to the report (similar to stored procedure parameters.
    note: the location of your dll must be in the same path on the CR Server as it was when you designed your report in order for it to be loaded correctly.  I usually put the dll in a folder that I know will exist on both machines.
    Dan

Maybe you are looking for

  • Insert Match EQ in 2 of 4 outputs??

    Hi, I'm working on a big quadraphonic documentary project (4 video screens, each 1 speaker), and Logic is doing this smoothly. So far, so good. The problem is that I only have 1 good set of speakers. For the "rear speakers" I use an old Philips multi

  • Newbie UPDATE request.

    Hello everyone. I'm trying to move a whole bunch of data from Table1 to Table2, using the UPDATE function, but only under special circumstances. I wish to move all available addressId's from Table1 to Table2, but only if there isn't an addressId in T

  • Lightroom 5.5 64-bit Will Not Import Photos Into Catalog; When I Click on "Import", Lightroom 5.5 stops working and requires reboot; Help.

    When I Click on "Import", Lightroom 5.5 stops working and requires reboot; Help. Import feature was working yesterday when I first installed Lightroom v5.5.

  • I'm getting a weird error message:

    I just installed zonelabs antivirus, and ever since then I get this error message when I try to open iTunes: The iTunes Music Library.itl file is locked, on a locked disk, or you do not have write permission for this file. I've set the user priviledg

  • IDOC Status -69

    Hello All, Is there any SAP Standard program that will process IDOCs with status 69. Thanks, - PSK