MS-Access 2007 Runtime SendObject Crash - ms-access

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.

Related

MS Access & Web browser Control is disabled

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.

DevCenter package submission error

I just completed my very first very own Windows Store app, so I am trying to submit it on Windows Store. I followed guidelines but problem everytime occurs after uploading package. Package is uploaded, analyzed and "error" is shown. But nothing more. WACK test is OK. Is there way how to know, what is wrong with the packages?
Sometimes the Store has issues with Chrome or other browsers, so try using IE, maybe it helps.

JSON data from website

I'm currently using VB .NET 2010. I'm trying to read data from a JSON request from the website https://tradingpost-live.ncplatform.net/ws/search.json (Guild Wars 2 site).
The website requires you to be logged in via the forums. Even having this in my vb app via a webbrowser object, I am still receiving a 401 Unauthorized error. I assume some sort of cookie is needed???
The biggest issue I have is trying to run the larger search # https://tradingpost-live.ncplatform.net/ws/search.json?text=&levelmin=0&levelmax=80&count=0
This gives me the error "Unable to download search.json from tradingpost-live.ncplatform.net. Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
By using Firefox, I can login and view each of these 2 sites without any issues. Any chance I can get a pointer in the right direction? So far I've installed JSON.NET but have no clue how to use it or if I should be doing something else...... almost midnight and my brain is fried!

ms-xhelp not recognised

I'm trying to get to grips with the relatively new help system fronted by Microsoft Help Viewer 1.0.
I've found the SDK (at http://www.microsoft.com/en-us/download/details.aspx?id=14923) and have started working through it. I've used Help Library Manager to add the modified help file in step 9 of the "Walkthrough: Branding Package and Content" tutorial, but step 10 tells me to view help by typing a command into a command prompt that starts "ms-xhelp:///". The command prompt responds with a generic unrecognised command response. Pasting the whole thing into Chrome just does a Google search, so obviously that's not recognising it, and pasting it into Internet Explorer attempts to start doing something but then pops a message up "There was a problem sending the command to the program".
Remarkably, this appears to be the first post on here containing "ms-xhelp", and no tags seem directly relevant.
I do have VS2010 installed and it runs help correctly. If I modify the tail end of the URL the web browser opens in, I can get at the newly installed help file, but piggybacking on something that knows what it's doing is unsatisfactory and doesn't show me where things are going wrong. Does anyone know why the "ms-xhelp" approach isn't working?

HTML hyperlink to call exe with parameters

-Hello, looking for some help.
We currently have a winform app used to do approvals in our company. The app sends html emails to the "approvers" who read the relevant info in the email and click on a hyperlink which launches the app so they can do their approval.
Currently this is done by including the following in the email html:
<a href=file:///C:\Temp\test.exe>Click to Approve</a>
This correctly launches the app, after a couple of security warnings which we are OK with. We use Outlook 2010.
Now, in order to improve this process I would need to pass an argument identifying the approver to the app. This works correctly if I pass the argument from, say, a windows shortcut, however, I cannot find a way to pass the argument to the exe in the href attribute in order to do it from the email. I looked everywhere, and found nothing except questions.
I have tried the following to no avail:
<a href=file:///C:\Temp\test.exe approverID>Click to Approve</a>
<a href=file:///C:\Temp\test.exe 'approverID'>Click to Approve</a>
Click to Approve
Also I have tried doing it with JavaScript, which from an HTML page works fine, but not from an email in Outlook.
I thought maybe there is a security threat with this approach hence it is not possible, but if I can successfully from an email run an exe, why can I not run an exe with parameters? It doesnt make sense.
Thank you for your help.
Leo
after not getting any suitable responses and after continuing my research for this without success, I will temporarily conclude that what I am looking for is not possible. If the reasons for this not being possible concern security, then I am completely puzzled as to why running an exe without parameters is allowed and therefore considered LESS harmful than running an exe with parameters. Surely, an exe does not require parameters to be harmful. If anyone would care to elaborate on this, it would be educational for me, thank you.
Nevertheless, I have thought of an alternative to my problem, which is not as elegant as would otherwise be stating parameters in href, but it serves my purpose. Because our app is run from a network drive, I have changed it so that it creates user-specific cmd files on the network drive and the hyperlink in the email it creates points to these cmd instead of the exe. That way, the cmd files contains the call to the exe with the correct parameters and as the cmd files are very light and quickly written, this is OK.
I am closing this as "answered", but it is not.
Thanks for taking your time to read.
Leo
I recommend you take a look to "How to create a protocol and assign it an app with parameters".
Example : http://kb.mozillazine.org/Register_protocol
http://msdn.microsoft.com/en-us/library/aa767914.aspx
I have had the same problem and one alternative I have found was to create a .bat file that is attached to the e-mail that includes the command line and respective parameters, the user double-click the attachment, confirms that wants to open the file and the .bat runs. It is not as cleaner as the link but I guess It is an acceptable workaround in some cases.
Important: My OS is Win7 and e-mail client is Lotus Notes, I am not sure if this alternative works with other mail clients/OSs .