Problem with RDC / Delphi 5  ... don't know where to turn.

I use Delphi 5 to write Webbroker (ISAPI) applications. I use Crystal Reports 8.5 to generate reports. I was using the Crystal Enterprise 8.0 Server to deliver the reports. Because of this, I have been stuck on Windows 2000 server and unable to move to more current versions of Windows Server. I thought that I could generate all my reports via RDC, save them in various output formats (depending on user input) and deliver them via a typical ISAPI Response.content . All this worked fine until I encountered a report with a  SubReport in it. It would not run and I have determined that most probably it is because the SubReport needs to be logged into the database (SQL Server) just like the main report.  The code below is pasted directly from my application. The environment is WinNT4 / SP6 Workstation for development. I know that is old, but the debugger for Delphi 5 is excellent whereas later versions just suck. These are Crystal 8.5. The registered DLLs are ... craxdrt.dll  (08/05/03), crtslv.dll (02/02/01), and ExportModeller.dll (07/16/01).
The specific problem is that the code crashes with an address exception at the line indicated below.
It appears that CReportObject is not being created properly (a guess on my part) by the call to iReportObject. I have seen this code used extensively all over the net, so it must work somewhere ... just not for me. Perhaps I dont have the very latest (yes I know they are old) DLL's as listed above. Does anyone have a clue as to why the error ???
Exception: EAccessViolation
Message: Access violation at address 65343430 in module 'oleaut32.dll'. Read of address 655EDE98
I cant upgrade to Crystal XI or 2008 because they wont run on WinNT4 which is my development environment and later versions of Delphi Webbroker suck when it comes to development environment on more current windows versions. Plus Delpi 5 Webroker modules cant be migrated forward to later versions of Delphi because they changed the whole structure. I am not a COM expert. If I cant get over this hump I will probably be forced to switch to Visual Studio and rewrite my application in .Net which I find to be very slow compared to ISAPI modules that talk directly with IIS and SQL Server with no intervening modules. That is NOT how I planned to spend next year. Any help will be very much appreciated.
CReportSections := CReport.Sections;
for x := 1 to CReportSections.count do begin
CReportSection := CReportSections.item[x];
            CReportObjects := CReportSection.ReportObjects;
            for i := 1 to CReportObjects.Count do begin
               CReportObject := iReportObject(CReportObjects.item<i>);
               if CReportObject.Kind = crSubreportObject then begin                    <<< ======= crash here.
                  SSubReportObject := ISubReportObject(CReportObject);
                  SReport := SSubReportObject.OpenSubreport;
                  STable  := SReport.Database.Tables[1];
                  wkstr := STable.Get_LogOnServerName;
                  if pos('ODBC', wkstr) > 0 then
                     STable.SetLogOnInfo(cLogOnODBC, cLogOnDB, cLogonUser, cLogonPW)
                  else  
                     STable.SetLogOnInfo(cLogOnOLEDB, cLogOnDB, cLogonUser, cLogonPW);
               end;
            end;
         end;
Edited by: DelMurray on Dec 10, 2009 4:17 PM
Edited by: DelMurray on Dec 10, 2009 4:19 PM

Oh boy. I suspect you will have no choice but to bite the bullet and go with the present day technology. I think staying so far back, is problematic, irrespective of everything else. Anyhow, there is an update for CR 8.5 here;
https://smpdl.sap-ag.de/~sapidp/012002523100011722112008E/cr85win_en_sp3.exe
Not sure if it will do anything for you.
More downloads are here:
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
Other than that, as a test, rather than iterating through the sections for the subreport, see if you can get at the subreport like this;
Set subrpt = Report.OpenSubreport("sub1")
I know the above is VB code, but it's all I have. If htis is a complex report with a number of subreports, test this with a new simple report with one simple subreport.
Also, remember that the name of the report is "nameofreport" if it was created in the main report. If it is imported from a path, the name will be "nameofreport.RTP";.
The code in your post is hard to read, but VB code would be as below if you need to iterate through the sections:
Dim Report As New CrystalReport1
Dim subReport As craxdr.report
Dim subReportObj As SubreportObject
Dim sect As Section
Dim rptObject As Object
For Each sect In Report.Sections
    For Each rptObject In sect.ReportObjects
        If rptObject.Kind = crSubreportObject Then
subReportObj = rptObject
BTW.; there is a limit of 1500 some odd chars in a post. After that the formatting gets lost. So, if that occurs again, just break up the post into two or more.
But if you click on the edit button the formatting is returned.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Edited by: Ludek Uher on Dec 10, 2009 11:56 AM
Edited by: Don Williams on Dec 10, 2009 2:15 PM

Similar Messages

  • I have home videos from a Sony DCR-HC20 and am trying to get them onto my IMac in itunes or imovie and I have it plugged in with a USB and don't know where it is or what to do next.

    I have home videos from a Sony DCR-HC20 and am trying to get them onto my IMac in itunes or imovie and I have it plugged in with a USB and don't know where it is or what to do next.

    Hello, not certain, but turn the Camera onto Play if it has such a setting, does it show up in iMovie then?

  • Itunes plus question - don't know where to turn

    Hi,
    I'm really confused on Itunes Plus and what I did with it.
    I accepted the option and upgraded everything I had to the Itunes Plus.
    Now, in my purchased area are all the songs I upgraded. Do I, physically, have to now move them into all the various folders the songs were already in before Itunes Plus or did that upgrade do it automatically? Can I delete those songs from the purchased area safely without moving them and copying them to my other subcategories on my Ipod?
    I'm really lost when it comes to using this forum or getting tech support. I'm a geezer who can work an Ipod and buy/load music. Things like this change to Itunes Plus, confuse me.
    I like keeping an empty purchased folder but I don't want to erase these upgrade purchases until I'm sure that they were upgraded on the areas where I already had them on my Ipod.
    Also, one more question, does using Itunes Plus mean I can play these songs on another mp3 players besides an Ipod?
    Would you please be kind enough to write me directly with your answers?
    Thanks,
    <Edited by Moderator>
    Message was edited by: tcmitssr
    Message was edited by: tcmitssr

    It is probably not a good idea to post your e-mail on a public forum.
    The purchased is just a list of purchased music. There is no reason to delete it from there or even look in there.
    All of the songs should be on your library with all of your other music. I don't know if they are in whatever playlists that you put them in. You can look and see.
    http://www.apple.com/support/itunes/

  • Don't know where to turn, completely turned off by Verizon Wireless

    Father's Day 2014, I walk into a Best Buy to get a new iPhone as my 4S was broken.  I upgrade to a 5s and I am told my plan of unlimited data will remain in tact.  To my surprise, at the end of that billing cycle I get a text saying I am about to surpass my family shared data plan of 3gb.  I make the first of 15 calls to Verizon to ask what happened.  I am told they no longer offer unlimited data.  They appease me by giving me a compliment gb of data.  The next month comes along and I realize this not acceptable for the data needs of myself and my wife.  I call back and they give me another complimentarry gb of data.  Later that month, a co-worker informed me of the Max plan where each user that had previously had unlimited data can be granted 6gb EACH.  I call Verizon back and I am told I did not take advantage of this in the 60 day window.  I said how can I if the option was never presented to me.  The associate agreed and submitted a request.  I called back weeks later to learn it was denied.  The new associate submits another request and suggests that he alter my plan to a lower plan in an effort to get approved.  I called back weeks later to learn it was denied again and my bill is now a mess.
    On my next call, a lovely woman helped me, she spoke to her manager who gave her a certain language to use in the request to get approved, considering the record shows I called several times during the 60 day window.  I called back weeks later to learn that was denied.  I escalate to a manger who reiterates the same 60 day nonsense but is very helpful in offering to call me back and text me when the FOURTH request is acted on.  He calls me back to tell me it was denied due to being outside the 60 day window...NO KIDDING, we've been over this.  I tell him I am taking my business elsewhere and that I do not expect to pay a ATE but he said that is not happening. 
    I have been a customer since 1998 (2004 as a family plan member).  I am shocked and appalled that I cannot be granted the Max plan even when it is clear I called several times during the 60 day window and it was not offered to me by several associates.
    I am completely frustrated because I do not want to go through the mess of leaving, getting a new phone and moving to a provider I have no experience with.
    Any suggestions from fellow customers or Verizon employees?

    I feel sorry for you, and your story is not uncommon.
    The lesson is educate yourself before any major purchase. Research online and in forums what is happening. That is what I do and so far that has worked out very well for me. I go into the store, or better yet, do it all online, knowing exactly what I want and what is available. Every other offer is a no. If it sounds good, I'll research it and not make a deal on the spot. Salesmen watch out for themselves first, the company second, and you third. They are taught how to sell you things you don't need.

  • I don't know where to turn or who to ask

    Hello Guys.
    I am new here and not sure what the protocol is so bare with me.
    I have recently some across a dilemma and then a discovery. Back story as quick as possible if i can.
    I have a burning question if anyone has the answer. I have been stuck for the past few months on how to redo my current setup (two new monitors, I big one and a smaller second). For the past few weeks I have been using two window to get familiar with the idea of one big monitor or 21:9 cause ultimately what I need is one for browsing and one for watching youtube or my streams. magic happened the other day with i opened a link for youtube and it made just that window full screen "kind of" which is heaven to me, I can't seem to reproduce it. Does anyone know why this happened
    and this here is what i would normally look like, if I hit the theater mode naturally.
    so does anyone know or ever have this happened.
    I just had a idea while I was doing this (https://www.youtube.com/embed/pD_yQZ4iNjY?rel=0) here is the link to the video which should recreate the phenomena for you too.

    Were you attempting to screen-span so both would panorama the same image as one?
    This kind of effect varied after Mountain Lion, as with Mavericks each screen will have
    a menu bar and dock; there is or was a way (in Mavericks) to work around this issue to
    some extent in settings. I found one reference initially, that tells about how to do this,
    but I caution there are several items one may click on in their page, but do not...
    How you accidentally happened across a desired effect (and your description was lost
    on me; the images don't explain it) may not be helped by the following; but the settings
    are where these options would be available. Perhaps not so in Yosemite, though.
    http://www.imore.com/how-span-window-between-two-displays-mavericks
    Other methods or better instructions should be available to compare, & see what works.
    There is this shareware product SwitchResX; not sure that'd help you:
    http://www.madrau.com/index.html
    In any event...
    Good luck & happy computing!

  • Need to restore iPhoto - don't know where from...

    I recently had to do an erase and install of OS X (10.4) on my iMac (flat screen G4/700). I didn't even think about iPhoto, because I assumed that it would be reinstalled when I put the OS back on. No such luck. My problem now is that I don't know where my version of iPhoto came from originally, so that I can try to reinstall it. I never purchased iLife, so I'm fairly sure that it came on the computer or with one of the OS X versions that I purchased along the way. I still have the original OS X install (and hardware restore) discs (10.1.4) that came with my iMac. In addition, I have the original retail Jaguar 10.2 discs as well as the Tiger 10.4 discs. I can't find the option to install iPhoto on any of them when I boot from the install disc and try to only install bundled software or do a customized install. Does anyone out there know where my original iPhoto came from, what version it was, and where I might find it to reinstall??

    Thanks to all for the prompt and effective recommendations. I used Pacifist on my 10.2 Install discs and got iPhoto installed. Now my problem is that it is version 1.1.1. I know that I was using a newer version than that... Maybe I purchased an upgrade along the way? Could that have been possible? Is there any way to upgrade to version 2 or 4?? Are there upgrades on the Tiger install discs? I read on some other boards that Apple offered Version 2 as a download to those that had purchased Macs and had version 1 on them...??? Any knowledge about this? I have run Software Update and it says that there are no updates available for any of my software... Did I need to install an entire package from the install discs? I only installed the iPhoto app. Maybe the updater isn't seeing my iPhoto version?
    Thanks.

  • I bought i pad 3 in canada 4 months ago but i think it's got problem with battery .i live in germany i don't know where to send it

    i bought i pad 3 in canada 4 months ago but i think it's got problem with battery .i live in germany i don't know where to send it

    Not quite what I heard when I went into the Apple Store in Hong Kong yesterday.
    I have just bought an iPad in Hong Kong but will eventually be travelling back to the UK.
    Louis in the Apple Store told me that iPads without cellular have international warranty but those with cellular do not (as there are slightly different models for different carriers).
    But he was pretty cagey and essentially couldn't give a clear, straightforward answer. Which most Apple employees can't.
    It is now a grey area, at the discrection of each local Apple Store & is subject, it seems, to you paying the import duty as a possible get out clause.
    Look carefully but do tell us if you got this iPad reapired. Thanks.

  • I use CS5 and all of a sudden I am getting a notification that says there is an error with my icons. It's telling me to contact support or reinstall. The problem is I don't know where my disks are to re-install. Any suggestions?

    I use CS5 and all of a sudden I am getting a notification that says there is an error with my icons. It's telling me to contact support or reinstall. The problem is I don't know where my disks are to re-install. Any suggestions?

    doodlebug,
    Am I just out of luck until I find those?
    You may try Adobe Support (phone),
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html
    and talk to them about your registration, but I am unsure whether they can help you with anything pre CC (There was a Customer Care option with chat which seems to have stopped working).
    If you are still out of luck, please report back, and I will try to ask someone to find the right someone to help you.

  • I have very thin, colored lines running vertical on my desktop monitor screen.  I don't know where they come from or how to get rid of them.  I started with one and now have three.  Can anyone give me some insight about what to do in getting rid of them?

    I have very thin, colored lines that have shown up on my IMac monitor screen.  I don't know where they came from or how to get rid of them.  I'm concerned now because I started with one and now have three.  Does any know why this occurs or how to get rid of them?

    I got an address from Applecare, although I can't place my hand on it right now. I didn't bother persuing the letter route myself as I didn't expect much. I know that the location was Cork, Ireland though as that where the UK Applecare is based as far as I'm aware. The best thing to do is to call Applecare (if it's free) and discuss the issue. State that you are not happy wit the fact that you will have to pay to have the problem resolved especiiay if it is an ongoing problem that has not been resolved. I ended up speaking to a senior manager of the Applecare team who then proceeded to tell me about mailing in my grievence to customer services division or something like that.
    If I can find the address I may post it if I'm allowed.
    In the case of age, Schools usually have a 5-year life-cycle as they tend to be used differently than consumer machines, i.e. being used constantly on a daily basis for at least 12 hours with no break. you would expect issues to appear after a few years, but I expect problems that arise through defects to be resolved and stay resolved. As I mentioned we had machines for around 2 years before the lines appeared and sent them to be repaired. I'm happy with that. What I am unhappy about is the fact that the problem has reappeared exactly in the same way and now I'm left with around 7 machines that I either pay loads to repair or, the more likely replace the machines with newer ones since the age is now big enough to warrant the replacement.
    Sorry for the lengthy moan, but these are the reasons I purchased Apple ahrdware in the first place to avoid the "not our problem" stance some PC vendors  usually take, similar to the Dell monitors thread mentioned in here somewhere.

  • HT201363 hello,I have a problem with security questions.i don't remember the answer. can you help me please

    hello,I have a problem with security questions.i don't remember the answer,please help me. i don't know how to manage this

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104775)

  • I have a 2009 A6 with a 5th Gen. iPod. I mostly listen to audio bks, not a lot of music. Often, the MMI starts on the first song on my iPod, therefore I don't know where I stopped in my 4-6 hr book.  How can I get MMI to start where I left off?

    I have a 2009 A6 with a 5th Gen. iPod pluggedinto the MMI.  I mostly  listen to audio books, not a lot ofmusic.  The books are 4-6 hours long, vs 4-6minutes with a song.  Often, but not always, when I start my A6, the MMI starts on the first song on my iPod, thereforeI don't know where I stopped in my 4-6 hour book.  How can I get the interface to stay stopped where I left off?  I have gone into iTunes and placed my current book as the first "song" on my iPod for ease of finding it, but often the MMI starts it over at the beginning.  Thank you if anyone has any experience with this.  My dealer in San Rafael, CA says they've never heard of this issue. 

    I think my iPod, which is an iPod touch 3rd generation , which is a lot different from a nano, which really makes it almost impossible for me to help you, which is why I suggested that you post your question in the iPod nano community.  Your first post says that your product is an iPod nano. I think the people who answer those questions would be most likely to help you. If yours isn't a nano then you can pick the right community from here. This community is really to answer questions about this forum, or issues that don't fit anywhere else.
    laverne's mom
    Message was edited by: laverne's mom

  • Hello I would like to buy Ipad with 3g, but I don't know which company choose... I am living abroad so which one to choose? i need gsm

    Hello I would like to buy Ipad with 3g, but I don't know which company choose... I am living abroad so which one to choose? i need gsm. I am going to buy it then ship it abroad

    Robertafromsp wrote:
    Which iPad is The newest do you know?
    I am puzzled why you could not find that info yourself on the web in a second or two:
    http://en.wikipedia.org/wiki/IPad#Model_comparison

  • Hello I have a problem with the iPhone 5 does not know the account activation lock

    Hello I have a problem with the iPhone 5 does not know the account activation lock 

    You will not be able to access the device without the account activate lock password. IF you have the receipt and other proof of purchase you may have sucess with contacting apple and asking them for assistance. Depending gretaly on how much proof of purchase you have.
    Good luck Friend.

  • SVM with QFS and a don´t know how growing a File Systems

    Hello Experts
    Please, Could some help me. I have a SVM with QFS and a don´t know how growing a File Systems in this configuration.
    can someone help me or share me a doc that would help me to do it?
    Thanks a Lot
    Joao Paulo ( email address removed by moderator so that you don't get spammed for all Eternity )

    I'm guessing that you mean a QFS file system built using SVM volumes? You want to grow a filesystem on these volumes?
    - How to grow the volumes depends on how they're built; this would require seeing either the command that built them or metastat -c for them. You have to expand each column of the volume equally if it is a striped volume type.
    - To extend the file system, you need to stop using it, edit the MCF properly to add the next extents, and then extend the file system. See the samgrowfs man page for details.
    I realize this isn't a definitive answer, but it's not possible to give you one without seeing the metastat output and the QFS MCF file.

  • How do you sync contacts with gmail, not other place on computer? I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from?

    I don't know where the contacts came from on that are now on my new phone. There are way too many and it is not my list of contacts I have on gmail. Where else is this from? I spent a LONG time on gmail going through my list of contacts. There were about 400 and I got it down to about 90. When I went to sync my new phone, ALL 400 synced.
    Thank you for any help!

    Sorry for the repeat...new here. OBVIOUSLY.

Maybe you are looking for

  • I can't update my iPod 4th generation to ios 6

    I can't update my iPod 4th generation to ios 6... I've updated my iTunes to 10.7 checked my security software tried restoring my iPod and then downloading on my device and my laptop. When I connect it to the computer I try downloading & updating and

  • Can you import iTunes playlists from iPod?

    I have moved my iTunes library off my computer and onto an external hard drive and somehow in the process have lost my playlist.  (I didn't do a good job of moving over, had to basically download everything back from the cloud).  So my music is all t

  • How to show photos at 100% size in the Edit window?

    Background: I am using iWeb 1.1.1 to re-make my .Mac Homepage website; I love this newer, more flexible application and I love using iPhoto 6.0.4 with it. My iPhoto 6.0.4 question: How can I get the photos to show in their maximum size in the Edit bo

  • I am unable to install an iOmega StorCenterix2

    Process:         setup [630] Path:            /Volumes/Solutions/Setup.app/Contents/MacOS/setup Identifier:      setup Version:         ??? (???) Code Type:       PPC (Translated) Parent Process:  launchd [89] Date/Time:       2011-06-07 01:03:34.491

  • My 3G cannot open page in safari because the address is invalid

    I have had to reset my 3G iPhone and it is saying that it cannot open page because the address is invalid in Safari.  Can someone guide me through how to fix this situation? Thank you