How can I show an image from the Internet on a MS Access form? For example, I'd like to show this image on my form: http://www.google.com/images/logos/ps_logo2.png. Thanks
Perhaps a webbrowser control would suit your purposes? Check out http://office.microsoft.com/en-us/access-help/video-add-web-browsing-to-a-form-VA101814124.aspx and http://office.microsoft.com/en-us/access-help/add-web-browsing-to-a-form-HA101631434.aspx for more info. They do more than display images, but might get the job done for you.
Related
Hi i am currently working in Asp.net using C# language.
Please any one tell me how to show picture that are stored server table(data type image) in asp:image control.
thanks.
You'll have to save the image in some folder on your website, and use a URL to link to that image. Since this is going to be done for every request, I'm guessing you can understand this is not a best practice.
The correct way to do this is save all images in a single directory on your website, and in the DB only store the URL for that image.
I have a classic asp website where I am selling pdfs. Ocne user pays, I give them a link to download the pdf like this:
https://mysite.com/products/ebook/mypdf.pdf
I want to protect it from
(1) the search engines indexing
(2) people accessing it directly without buying it.
How can I do it?
Please suggest
You have to provide an extra ASP page, e.g. getpdf.asp to download the content.
See this answer, this covers most of what you need:
https://stackoverflow.com/a/12946733/911635
You will have to add some access control to check if the current user has access to the file.
I am using asp.net and C#.
I have a image control, I want that people can tag that image[similar to facebook]. As I want to save the tag cordinated into the datbase, so that the admin can see the tags made by the user on the image. Please let me know how can I achieve this in asp.net with JQuery.
Thanks in advance.
Yes. Its possible to create facebook like tagging in asp.net
See the examples here
and here
User click on a link button and it will direct them to a url that is dynmaically generated which a pdf file. The browser will prompt the user to either save or open it.
I want to know if it is possible to downlaod the pdf file to the server then show the pdf file in the asp.net web page. When i google on this question, 99% of top link are some third party component. Is it a way to do this without purchase any 3rd party component?
thank
I use itextsharp, its a free open source c# port of the java itext library.
Makes generating dynamic pdfs in asp.net a breeze and there is lots of documentation/examples floating around.
I don't think that you'll have much luck without a 3rd party component. First, the issue isn't showing the PDF, it is generating it. For that, you'll need a library to help. Rolling one yourself would not be cheaper unless you have an enormous amount of unpaid time on your hands.
With respect to third-party controls, I recommend and use DynamicPDF from CeTe.
Yes there is a way to do this without a 3rd party tool, but it involves coding a PDF-to-html translator.
If this is something for a business, the RoI for the 3rd party control is that you don't have to spend hundreds of hours coding & testing this component, when you could buy one for just a few hundred dollars.
Now, an alternative is to code a page which displays the data in the same way which the PDF file generates it (this could actually be handled by RDLC). So that when the user clicks the link button, they are taken to this display page, from which they can download the PDF version if they want a local copy.
Regardless of how you generate the PDF, I have found a better user experience if you open the PDF in an IFRAME instead of the full browser window. You can give users instructions and maintain the browser navigation.
I think what you want to do is by going to: http://my_site.com/generate-pdf.aspx?=someId
this should in fact just show the PDF file?
What you need to do is change the Response type.
See here for how to do this with images.
Look up the Content-Disposition HTTP header. You can send back a value that requests the content be displayed inline instead of downloaded.
I want to allow an Excel report to be viewed embedded in a WebPage... is there a way?
I don't want to use an ActiveX, or OWC (Office Web Components), I just want to open an existing file from the internet explorer application.
I don't want users to download and then open it.
Using an iframe wouldn't be a problem, but my preliminary tests weren't successful
Any ideas? Is it at all possible?
This has to do with the local person's browser set up and not really anything you can do on your end. If they click a link with the .xls(x) extension, the browser determines if it wants to open it itself or in a new window.
Here 2 microsoft pages on how to change these settings:
http://support.microsoft.com/.../how-to-configure-internet-explorer-to-open-office-documents-in-the-app
http://support.microsoft.com/.../embed-your-excel-workbook-on-your-web-page-or-blog-from-sharepoint-or-onedrive-for-business
You should try using the Excel Web App Embed feature that lets you embed tables and charts from Excel directly on your Web Page. You can even let users interact with the spreadsheet so that they can sort and filter data and use your spreadsheets formulas to calculate make their own calculations all without altering the source.
The Excel Web App and storage is all free from Microsoft. Any data you embed on your Web page can be viewed by all the major destkop and mobile browsers and when you update your spreadsheet the data on your web pages is automatically updated as well.
I think your best bet is going to be extracting the data out of the Excel file and displaying it in a regular HTML table. Excel isn't exactly safe to invoke from a web page and not everyone has it anyway.
Take a look at scribd iPaper Viewer - this is a Flash based Viewer of XLS (and other) docs.
MOSS 2007 has a nifty feature called Excel Services which might fit the bill...
Excel Web App allows embedding "live" interactive spreadsheets on a web page. For an example, see http://datawiz.wordpress.com/2011/01/10/how-to-embed-excel-on-a-web-page/
in your comments you say that the Excel file is on the client's filesystem, not on the webserver. i think the security model of sane browsers forbid this; but wouldn't be surprised if setting high permissions to your pages could allow this.
<iframe src="file:\\yourpath\yourfile.xls" width="100%" height="500"></iframe>
Well this is a bit crude but sort of fits the bill.
Select the area of the spreadsheet you wish to display.
Copy this area into MS Paint.
Select the area in Paint and use the Edit/Copy to/ function to save this as a bitmap.
Now load the bitmap as you would any other pic.