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 757213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:20:10+00:00 2026-05-14T15:20:10+00:00

I tried to be the most descriptive I could. Ok, so since I’ve never

  • 0

I tried to be the most descriptive I could.

Ok, so since I’ve never done anything like this before, I guess it’s better to ask before starting at all to just don’t get the whole process wrong.

We have a report that has to be called from an ASP.NET application, it could be a simple button. Through the code-behind, I gotta pass in a paramater, render the report, and don’t save it anywhere, just open it to the user, as a .pdf file so he could save or print it.
So please, give me links or tips, I’m reading MSDN documentation right now…

If you have any suggestion on other technologies, as for the report, I’d like to hear it, but it has to be called from ASP.NET.

Thanks in advance!

EDIT:


Now I’ve got the report done, I just need to know the best aproach to call it.
It can’t be done directly from an URL because that allows the user to save or close the pdf file, which is not what I want.

I’m starting to think that the best aproach to achieve this would be the following:
I render the PDF programatically, and create the .PDF file in a temporary folder inside my app structure, then start a new thread to open the file, and wait for the user to close it, when he does, I delete the file and the thread is dead.

What do you guys think? Do y’all have a better option?

  • 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-14T15:20:11+00:00Added an answer on May 14, 2026 at 3:20 pm

    If you check the edit history, you’ll see that I changed this completely.

    Again, answering my own question:

    The aproach I considered the best for doing this was:

    • Having the report in SQL Reporting Services Report Server;
    • Rendering it through code written in .NET, and capturing an array of bytes as response;
    • Writing the array of bytes to Response.OutputStream;
    • Adding an attachment header, so the file would be available as a download to the user;

    Hope this helps if someone has to do the same.

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

Sidebar

Related Questions

Tried something like this: HttpApplication app = s as HttpApplication; //s is sender of
I tried scouring the web for help on this issue, but there are so
I tried but I guess Message Box only works with win forms. What is
I tried this XAML: <Slider Width=250 Height=25 Minimum=0 Maximum=1 MouseLeftButtonDown=slider_MouseLeftButtonDown MouseLeftButtonUp=slider_MouseLeftButtonUp /> And this
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
Tried to map it from Preferences -> Settings -> Keyboard, but the key combo
I tried to install Delphi 7 on Vista several times and Vista prevented me
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled
I tried to package a Twisted program with py2exe, but once I run the
I tried x = y ** e, but that didn't work.

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.