How to show the first page and then rest will be created in background

Dear Friends,
I am suffering from some seriouse issue of slow opening of report....
I am using vs2005 and asp.net 2.0 and crXI R2 sp4,
using oledb for getting data from ms sql server 2005.
Now my one report called accounts ledger
when i execute the report query it takes 1.03 mins for 515000 records..no issue with it ,
when i execute the report from report desginer for 515000 records its taking 26 mins . It is generating all
32000 pages.
Now same report i run from my web based erp application it takes 30mins to execute 32000 pages now
this is too much time it is taking and now our client is fedup of ussss..
So is there any way that we can show First page at the earliest and rest of the pages willl be getting created in background? is it possible ?
We have to give them the solution as sson as possible...
can anyone suggest the diff ways to get out of this problem .......
Please ur co operation will be appriciated....
thansk

Hi Mithun,
Here are a few points related to performance issue. These might be helpful.
The performance of a report is related to:
External factors:
1. The amount of time the database server takes to process the SQL query.
( Crystal Reports send the SQL query to the database, the database process it, and returns the data set to Crystal Reports. )
2. Network traffics.
3. Local computer processor speed.
( When Crystal Reports receives the data set, it generates a temp file to further filter the data when necessary, as well as to group, sort, process formulas, ... )
4. The number of records returned
( If a SQL query returns a large number of records, it will take longer to format and display than if was returning a smaller data set.)
Report design:
1. Where is the Record Selection evaluated?
Ensure your Record Selection Formula can be translated in SQL, so the data can be filter down on the server, otherwise the filtering will be done in a temp file on the local machine which will be much slower.
They have many functions that cannot be translated in SQL because they may not have a standard SQL for it.
For example, control structure like IF THEN ELSE cannot be translated into SQL. It will always be evaluated
in Crystal Reports. But if you use an IF THEN ELSE on a parameter, it will convert the result of the condition to
SQL, but as soon as uses database fileds in the conditions it will not be translated in SQL.
2. How many subreports the report contains and in section section they are located.
Minimise the number of subreports used, or avoid using subreports if possible because
subreports are reports within a report, and if you have a subreport in a details section, and the report returns 100
records, the subreport will be evaluated 100 times, so it will query the database 100 times. It is often the biggest
factor why a report takes a long time to preview.
3. How many records will be returned to the report.
Large number of records will slow down the preview of the reports. Ensure you only returns the necessary data on the report, by creating a Record Selection Formula, or basing your report off a Stored Procedure, or a Command Object that only returns the desired data set.
4. Do you use the special field "Page N of M", or "TotalPageCount"
When the special field "Page N of M" or "TotalPageCount" is used on a report, it will have to generate each page
of the report before it displays the first page, therfore it will take more time to display the first page of the report.
If you want to improve the speed of a report, remove the special field "Page N of M" or "Total Page Count" or formula that uses the function "TotalPageCount". If those aren't use when you view a report it only format the page requested. It won't format the whole report.
5. Link tables on indexed fields whenever possible.
6. Remove unused tables, unused formulas, unused running totals from the report.
7. Suppress unnecessary sections.
8. For summaries, use conditional formulas instead of running totals when possible.
9. Whenever possible, limit records through selection, not suppression.
10. Use SQL expressions to convert fields to be used in record selection instead of using formula functions.
For example, if you need to concatenate 2 fields together, instead of doing it in a formula, you can create a SQL Expression Field. It will concatenate the fields on the database server, instead of doing in Crystal Reports.
SQL Expression Fields are added to the SELECT clause of the SQL Query send to the database.
11. Using one command as the datasource can be faster if you returns only the desired data set. It can be faster if the SQL query written only return the desired data.
12. Perform grouping on server
This is only relevant if you only need to return the summary to your report but not the details. It will be faster as less data will be returned to the reports.
Regards,
Shweta

Similar Messages

  • My 4630 printer only prints the first page and then cancels

    My 4630 printer only prints the first page and then cancels the rest of the document. I have to manually choose to print one page at a time. If I try to print a document, it prints the first page and then cancels printing the rest of it. It's driving me crazy. I just bought this printer and, other than that, it works fine. I tried the HOTFIX link that was attached to a previous link as well as other microsoft updates, however, am still having no luck.

    Hi @ImaniL,
    I believe I have something that could assist with your printing issue
    My colleague, @JERENDS, has created these instructions to help with issues similar to yours, and I believe his instructions will help resolve your printing issue!
    Let me know how things go, and if that doesn't fix it, I will certainly see what else I can find for you
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • When I open Firefox, it goes to the first page and then stops, saying "Not Responding" with the cursor spinning. What can I do to fix this? Thanks for any help

    When I open Firefox, it goes to the first page I open, but then stops and says "Not Responding" with the mouse cursor spinning. I hit the close button and it says Windows is searching for a solution (which doesn't come).
    When I open Firefox again, it says:
    Well, this is embarrassing.
    Firefox is having trouble recovering your windows and tabs. This is usually caused by a recently opened web page.
    You can try:
    Removing one or more tabs that you think may be causing the problem
    Starting an entirely new browsing session
    Any ideas? I gretly appreciate any help. Thanks!!

    What is that first page?
    Can't you open any web pages in Firefox?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • I can't print multiple pages from a website using the site's print button or 'file - print' and if I try to save as a PDF, it still only saves the first page and then cuts off.

    I'm using Mac OS X 10.5.8 and Firefox version 3.6.8. When I'm on a website and try to print the info on the site, whether I use the site's own 'print' option, or I go to the Firefox toolbar and try to use 'File->Print', only 1 page prints out - it just cuts off mid-page. If I try to save as a PDF instead, the same thing happens in exactly the same spot - it saves as a 1-page PDF and cuts off in the middle of the page. I've already tried all of the suggestions here https://support.mozilla.com/en-US/kb/Printing+a+web+page?s=printing&as=s and the suggestions here http://kb.mozillazine.org/Problems_printing_web_pages and nothing has worked.
    I appreciate any help!!

    I have the same problem... not being able to print website 'Print' pages. I have read carefully the above link and have followed the reset directions in about:config, but I still cannot print in Firefox. Both Google Chrome and IE work perfectly every time. I have verified that the correct printer is selected and that the margins are in order (0.5 all around happen to be what mine are set for). I have resorted to use the Firefox Add On "View this Page in IE" whenever I need to print something. Works like a charm, but come on... it should work in Firefox too! I know there is some setting or something, but the Problems_printing_web_pages link had nothing there that worked for me.

  • In two page view preview shows the first page on its own

    In two page view preview shows the first page on its own. I have recently downloaded an ebook which has image based tutorials and the pages are in such a way that pages 3 and 4 should be seen next to each other. Preview seems to want to have pages 1 on its own therefore making this rather difficult. Any help on resolving this issue would be appreciated.

    Try selecting the first page, and then from the "Edit" menu select "insert blank page". This should put a blank page at the beginning of the document, shifting all pages down one and putting them in the order you want for your display.

  • Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    If they aren't on icloud.com they are no longer in iCloud.  If you don't have another backup, I'm afraid they're gone.

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • How do I move an icon from the second page of my home screen to the first page  and vice versa?

    How do I move an icon from the second page of my home screen to the first page and vice versa?

    Hold an icon down until they all wiggle.
    Drag it wherever you want it.

  • I plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    i plugged my iphone 4S into my computer for the first time and then my photos were replaced with the ones from my old iphone, how do i get them back?

    Try restoring from the backup created at the beginning of the sync process:
    Without connecting your phone, open iTunes, go to Preferences, on the Devices tab check "Prevent...from syncing automatically"
    Connect your phone, right-click on the name of your phone when it appears on the left sidebar in iTunes
    Select Restore from backup, choosing your most recent backup to restore from
    Disconnect your phone and confirm that your photos are back
    Go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • When I create a new project in iMovie and drop clips into it, it plays the first one and then quits right near the end of the second clip.  I have re-started my computer, tried a new project etc, and no luck, does anyone know how to fix this issue?

    When I create a new project in iMovie and drop clips into it, it plays the first one and then quits right near the end of the second clip.  I have re-started my computer, tried a new project etc, and no luck, does anyone know how to fix this issue?

    This is a part of the larger MacBook Pro connectivity issue. There are several related threads dealing with the MBP's networking problems. If your unit is suffering from this type of difficulty, good luck ... (or a long ethernet cable)
    (PS Everybody please make noise on this one so apple comes up with a solution.)
    < Edited by Host >

  • When I go to a web page power point presentation saved as Adobe the first page loads then I keep getting error message:

    I have Adobe Acrobat Pro XI
    And its up to date.
    When I go to a web page Power point presentation saved as Adobe the first page loads then I keep getting error message:
    There was a problem reading this document (14)
    I've tried refreshing the download.
    Im using IE 11
    windows 8.1
    Any ideas how to fix this?

    [moving discussion to Creating, Editing & Exporting PDFs forum]

  • Hp co-ouder starts up shows the hp logo and then it says monitor is going to sleep

    hi guys
    i have this hp computer for like almost a year and i really enjoy it but for some weird reason the next day my pc did something strange when i click the power button it goes on and then it shows the hp logo and then after a little while it shows a message monitor is going to sleep and then it restart itslearning till i turn it off
    can anyone pls help me with this problem i didnt find anytime on the internet
    already thanks for helping

    Hello @i__need_help,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that your computer automatically enters sleep mode before it can boot into Windows, and I would be happy to assist you in this matter!
    To further diagnose this issue, I recommend booting your computer using Windows 7 Safe Mode to change the power management settings.
    If you are able to successfully boot into Windows, please follow the steps below to restore the default schemes on your system:
    Step 1. Click the Start button
    Step 2. In the search box, type "Command Prompt"
    Step 3. Right-click Command Prompt
    Step 4. Click Run as administrator
    Step 5. At the command prompt, type powercfg -restoredefaultschemes and press Enter 
    reference: http://superuser.com/questions/669571/windows-8-1-​64-bit-power-schemes-gone
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Report from SQL Query -Excel format only show the first page

    Hi,
    I have some Reports from SQL Query. In the display options, I choose Excel as default format. The Excel documents only show the first page. If I choose HTML as default format, it shows every rows.
    Please advise on how to have a complete Excel document as HTML format does.
    Thanks a lot.
    Lina Han

    I beleive when you export Oracle reports to Excel it is the Data that is transferred along with Column Names.
    You cannot export the variables defined on the report.
    Hence you will not be able to export the Footer to excel. (Still looking into it will let you know if i find anything interesting)
    Regards,
    Bhushan Salgar

  • HT4623 when i make software update my i phone shut down and it can't start it always Show the apple mark and then disappear i can't make any thing what the problem and what the solution thank you

    Dear gentlemen:
       i know how can update ios update but when i make update my iphone shut down and it can't start.
      it always Show the apple mark and then disappear i can't make any thing i need know what can i do ?
    thank you

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • When I copy/paste text to an ipages empty document can does it only show the first page of what I copied?

    When I copy/paste text to an ipages empty document can does it only show the first page of what I copied?

    You want to use word processing mode. I suggest you ask your question in the Pages forum and include information about what you are copying. Off the top of my head I can't come up with any reason you'd see this in WP mode.   https://discussions.apple.com/community/iwork/pages

Maybe you are looking for