How to display Excel file in an asp page choosing range - html

I am really new to asp.net I have found many hints about how to download and open in excel an excel page but what I'd like is to show the excel file in the asp page choosing the range to be shown. Is that possible?
something like this:
By doing so I'd make this file available to be seen to everyone even people not having excel.
thank you in advance

You may use this library
or convert the Excel file to a pdf and easily display it

Related

How do i export a PDF correctly on classic asp without external application?

i have this question about how to generate a PDF file from a webpage on asp, i can generate a Word document and Excel but i can't yet create a pdf document on asp, i have a workmate who told me he could generate a pdf file with just asp code, nothing external so i would like to ask to you how this could be done.
currently i tried the method that creates some Excel and Word files, i tried converting it to pdf but the file gets exported incorrectly therefore the file exports corrupted and it can't be visualized
this is code i'm trying currently
Response.ContentType="application/pdf"
Response.AddHeader "Content-Disposition", "filename=download.pdf"
however this code works fine when generating a Word document
Response.ContentType="application/vnd.msword"
Response.AddHeader "Content-Disposition", "filename=download.doc"
what could be causing the file to get exported incorrectly? thanks in advance, any help Will always be grateful
you can't do that in classic asp, you can either buy a library from internet with that stock function (that obviously could cost you money) or you can load the print page that gives you the option of creating a PDF file

Creating an html formatted file to be opened by Excel

I am trying to export a spreadsheet file from a website. The data is a bit too complex for a simple csv, so I figured the best way to do it was to format it into a file containing nothing but an HTML table. If I give it a .xls extension, it will open, but only after throwing an error and asking for confirmation. Is there a way to set up the file so that Excel knows that it is supposed to have HTML code in it, and so that the OS knows that Excel is supposed to open it?
This is going to be used by people who aren't going think to open Excel and drag the file in or open it from inside Excel. They're going to be double-clicking on the file.

Merge multiple access reports to one pdf file using vba

I wan't to merge multiple access reports to one pdf file using vba code. This vba code needs to work on the computers at my work. These computers only contain Adobe Reader, and I am not able to install Acrobat because I am not Administrator. So now my code generates for all the reports a seperate pdf. I had some code to merge these pdf files to one pdf file where I use 'Acrobat.CAcroApp'. But i get an error on line:
Set AcroApp = CreateObject("AcroExch.App")
I think I am not able to do this cause the computers only have Adobe Reader installed. Is there a possibility to create one pdf file for multiple reports/pdfs without using Acrobat.
Thx in advance
2 solutions.
Make a master report that has each individual report embedded as a sub report. If it's just a few, it should work fine, but too many may bog down / crash the application.
Here's a VBA way of doing it here.
Without acrobat reader this is indeed not going to work. I, however, am using the following dirty workaround for users without acrobat;
Export all your reports to rich text ("*.RTF" format) in the same folder. Afterwards, you open a word application via access vba, and loop through the RTF files and then copy them into your word file, with a page break after every insert. Then, you save the word document as a .PDF file.
This is a method prone to errors, so if a more experienced user has a better way, please do tell. I'm interested as well!

Converting SQLite to HTML?

There are various utilities that allow you to convert an SQLite file to HTML format. What I am looking for is a script that would let you do this, in perl or something maybe? How would I go about finding / doing this?
Thank you :)
Are you talking about dynamic generated pages? In that case just use a while loop that gets content from the database and presents them in a table.
If you just want to export it to html once, you can use export as an excel stylesheet. From excel you have the option to 'save as html'.

Convert excel spreadsheet into html using vb.net?

I would like to see some code/tutorials on reading an excel spreadsheet (a calender) into VB.NET. I'm pretty much okay from there. I want to convert it to an HTML table and output it into an html file for inclusion on a website.
Where can I find tutorials OR can someone post some code with a desciption to get me startd?
BONUS:
Is there a better way to include a xls file in a webpage?
There is an excel reader available on Codeproject here. The article covers the Excel file format layout, and the related material from Sun, in respect to how OpenOffice reads in the Excel spreadsheet.
AFAIK, there is no way to include an xls in a webpage unless you are talking about showing the actual data, it may be possible under IE only, to trigger the end user's Excel application, but IMHO that would be a dangerous assumption as that assumes the user has MS-Office installed.
Hope this helps,
Best regards,
Tom.