Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:24:56+00:00 2026-05-27T13:24:56+00:00

I am using an Application server for calling Oracle Reports and I have a

  • 0

I am using an Application server for calling Oracle Reports and I have a URL to call the report. When the report is called the server converts it into PDF but when report contains large data it takes a lot of time to load. I want to do in asp.net that when I call the report url it opens the PDF file and copies it into the root of my web folder. The next time when I call the URL it opens the PDF file and creates a new PDF on backend for next call.

I have made this function to download file

Sub DownloadFile_Sap()
        Dim remoteuri As String = "http://appsrv01.shakarganj.com.pk:7778/reports/rwservlet?reptest&report=sap_dashboard"
        Dim filename As String = Server.MapPath("~/Files/rwservlet_reptest&report=sap_dashboard.pdf")
        Dim mywebClient As New Net.WebClient()
        mywebClient.DownloadFile(remoteuri, filename)
    End Sub

and I called it on linkbutton – code is below

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
    ClientScript.RegisterStartupScript(Me.GetType(), "openfile", "window.open('http://202.125.144.34:83/Files/rwservlet_reptest&report=sap_dashboard.pdf');", True)
        DownloadFile_Sap()

    End Sub

But when I call this method on link button it gets same time as it got on download file. What can I do so that the Link button calls the file from the folder in a second and downloads the file on the backend?

Link button code is here

 <asp:linkbutton ID="Linkbutton1" runat="server" PostBackUrl="~/Files/rwservlet_reptest&report=sap_dashboard.pdf" OnClick="DownloadFile_Sap"  >LinkButton</asp:linkbutton>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:24:57+00:00Added an answer on May 27, 2026 at 1:24 pm

    Multithreading in asp.net web application is not a good idea.

    You have limited source on IIS thread pool and if you try to use this in a such operation,
    you will have serious problems on production.

    So what you can do it, split to Windows service. Do all expensive operations on windows service application. Make the communication between your web app and windows service app through sql table.

    EDIT:

    Here the path for this:

    You will have to visual studio projects
    1- your web app(you have alrady it)
    2- new project that will run as windows service.

    Then you will have sql table containing:
    Report_Name, Ready_Flag

    From web app you fill Report_Name
    From windows service report is prepared and set Ready_Flag to true
    You can query from web app Ready_Flag if set true, once it is true,
    you serve to client

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am Using a Application server for calling Oracle Reports and i have url
I'm using upstart v1.4 to start my application server, it's called unicorn . The
I'm using Weblogic application server and Apache web server in my J2EE environment and
I wrote an application server (using python & twisted) and I want to start
I built a client server application using posix shared memory and posix unnamed semaphores
I built a client server application using an IDL file for client server communication
I am developing a client-server application using .Net Remoting. From my server I want
I start to write a client - server application using .net (C#) for both
I'm trying to build a client server application using POSIX shared memory and POSIX
I am just getting started creating an AJAX application using server side push. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.