I have a new Access 2016 database. I add the reference to MS Internet Controls which basically makes the Web browser control available to place on a form, no problems works like a boss.
I have another Access database that has been converted to 2016 from 2013. I add the reference but this time the control is disabled and won't allow me to place it on a form.
I am on the same machine so I don't believe the issue has to do with permissions/security (I could be wrong). I am unable to find any info on this issue.
Resolution: Web browser control only works with ACCDB format. My conversion was still using the mdb format. Thanks for your response Erik.
Related
If I put a shape on an Excel Spreadsheet and run this VBA code:
Sheets("Sheet1").Shapes("myShape").Fill.UserPicture "http://maps.googleapis.com/maps/api/streetview?&location=51.499473,-0.12902&size=256x256&heading=0&sensor=false"
Then a streetview Image shows immediately in the shape.
Now, fast forward to me trying to do the same in MS Access - I put an Image control on an Access form and run this:
Me.myImage.Picture = LoadPicture("http://maps.googleapis.com/maps/api/streetview?&location=51.499473,-0.12902&size=256x256&heading=0&sensor=false")
I get an error:
Microsoft Access can't open the file [then shows URL as above]
I can't seem to use an unbound Object frame either, and various permutations of the URL don't help.
I know that I can use the Access Web Browser control, but I don't want to do that.
I also know how to download the image to a temp file on the C drive, and then load it into the image control. But I'd like to know if possible how to do it in 1 step (avoiding the temp file.
So, any ideas on how to load the streetview image directly into an Image control on an Access form?
Thanks heaps
The problem is you are using the wrong control. use a WebBrowser control and it should work for you. In Access 2007 + :
Strange behavior appears when using Updatepanel on Apllication page or usercontrol in Sharepoint 2013.
In FF and Chrome postback leads to full page refresh after small idle between requests (around 30 seconds). Example: we have a page with button and label inside UpdatePanel. We open this page and click the button -> updatepanel refreshes its content without page reload. If we will wait more than 30 seconds and click the button again, page will reload.
In Firebug or Fiddler we can see follow:
1) POST-request from updatepanel to server
2) Response from server will contains
1|#||4|53|pageRedirect||/_login/default.aspx?ReturnUrl=
3) After there will be request to /_login/default.aspx and then redirect to /_windows/default.aspx?ReturnUrl=
4) And then it will be redirected to my initial page.
Users see only page reload.
But if we will wait a long time (around 20 minutes) there will be not page reload and updatepanel refreshes only their content.
This error happens in different environment in defferent domains. We use standart Claims based authentication and Minimal Download Strategy feature is disabled.
In IE this error occurs, but not so often.
I found that error disappears if Form Authentication is disabled in IIS web application (but in this case there are some problems in another pages in portal).
Can anyone help me with this problem. Thanks
The Visual Studio 2012 Designer Code Generator is really screwy for sharepoint. Are you using Visual Studio 2012 by any chance?
If so I strongly recommend upgrading to Visual Studio 2013. Visual Studio 2012 is the Windows Vista of IDE's. Microsoft released 2013 really faster after 2012 to address all of it's issues.
has nothing to do with visual studio, IMHO.
here is a thread about it:
https://social.technet.microsoft.com/Forums/systemcenter/en-US/c33d4a46-87d6-4dbc-a24c-cb8e5f9eb1ea/page-refresh-after-postback-from-updatepanel-in-sharepoint-2013?forum=sharepointdevelopment
pointing to a hotfix:
https://support.microsoft.com/en-us/kb/2910945
which addresses this issue: "When you browse to a SharePoint 2013 page that contains an UpdatePanel control, the page may be refreshed randomly. Therefore, if you type something in a text field on the page, the text field may become empty."
FYI, I installed it and it didn't resolve my issue, but it might help you.
Yes, this is an authentication configuration issue - means your claims authentication is not set up correctly probably, so the authentication cookie is missing/not sent with our ajax request.
Please update back if this KB resolved it for you, I want to keep track of this issue.
Is there a way to check file size on the client (without the use of ActievX which also errors out), before it is passed back to the server? in asp
In ASP? No, by definition. Active Server Pages can't do anything before they get a request from the client.
There is a draft File API that will allow you to perform this sort of check using client side JavaScript. The Mozilla Developer Network has a guide on getting information about selected files. Once you have a reference to the file, you can just access its .size property.
Note that since the specification is a draft, it is rather new and subject to change. This one is very new and thus has [very limited browser support](http://caniuse.com/#search=file api).
You might also be able to achieve what you want using a Java applet or Flash (the latter of which would be better supported).
Working on an old MS Access 2000 database I didn't create. Has a working "projects report" which the client wants to send to prospects as a PDF document, replacing the currently-text-only project title with a title that is also a hyperlink linking to a web page (we can generate the URL programmatically).
Note: Access 2000 does not have a built-in "hyperlink" object for its reports as far as I know -- not sure if newer versions do or not.
Any ideas re: the best/quickest way to go about this? Development time/cost is a concern/constraint, but it's a long enough project list they'd rather not have to export the report to Word or something and manually create the URL links, exporting to PDF as a third step.
Check out this for creating the PDF.
http://www.lebans.com/reporttopdf.htm
As for having a URL in the PDF...I don't think it can be done. But I would wait for others to comment to be sure.
Seth
I have programmed an Access Database program using Access 2007. I have a button that points to the event: DoCmd.SendObject acSendReport to have it email a PDF report (acFormatPDF). Everything works fine in the normal Access 2007 program, but when a user opens the program with Access 2007 Runtime, when clicking on this button it goes through the normal steps (notifying Outlook, waiting for Allow/Deny clearance), and then after you click Allow, the program crashes with a Runtime Error.
Does anybody know what is going on here? Is this a normal error with Access Runtime? I have tried other file formats (RTF and XLS) instead of PDF, but it seems to be the SendObject command that is crashing the Runtime Environment?
Clarification: Access Runtime does not output an error code upon this crash. Just a window stating a "runtime error has occurred".
It seems that the runtime license doesn't not cover the PDF converter. However, this article:
http://blogs.msdn.com/access/archive/2007/08/23/pdf-xps-now-supported-in-access-runtime.aspx
purportedly explains how to chain the PDF converter installer with your runtime installer so that it will be part of the runtime installation. Unfortunately, subsequent discussion on that page shows that PDF output didn't actually work with the runtime. The SP2 for the runtine purportedly also fixes the problem:
http://blogs.msdn.com/access/archive/2009/04/29/access-2007-and-runtime-sp2-now-available.aspx
but some commenters there report nonspecific PDF issues. So you might want to check if you've got SP2 of the runtime and see if you can then use the PDF converter.
Sorry not to be of more help here, but it really does look like you're encountering a widely-experienced problem.
I have discovered another issue that I had in the code. On top of the PDF issue answered by Mr. Fenton, I had an issue with the multiple email addresses in the code. I had listed multiple email addresses in the CC portion of the code. If I just list 1 email address, it works.
So now I just have to figure out how to send the email to multiple address and all should be well.