embed config file in excel xlsm - excel-2007

I was wondering if anyone has embedded a small config (csv essentially) file inside an xlsm and read from/written to it to save settings. Currently I use an external config file and Windows ini API function to access the info.
I've been looking on the internet and haven't found anything of use. Most it refers to embedding a spreadsheet in a web page or embedding a gallery in the spreadsheet.
Thanks,
Kevin

Related

UWP OneDrive FilePicker synchronization issue

I have a problem with the native FilePicker in UWP.
I wish to download a file from OneDrive which contains data. After I´ve modified the data on my phone I wish to sync the extern file on OneDrive.
The concept is very easy. I have a SQLite database as local data storage. When I export data, the database will be serialized into a XML file which I want to store somewhere else.
The idea was to sync the file with OneDrive. I saw this concept in many Apps before.
So I´ve tried to download the file with the native FilePicker. I can get all data, no problem. But if I would modify data, the changes would not apply to OneDrive...
Some references:
C# UWP LiveSKD and OneDrive access using FileOpenPicker
https://dev.onedrive.com/sdks.htm
Add OneDrive to your app in minutes with a few lines of code. File picker SDKs allow you to quickly download or link to files already in OneDrive, or save files into OneDrive without writing much code. Quickly integrate your app with OneDrive today!
How can I solve this problem ?

Uploading image file from VBA Excel

I know this question has been asked a lot of times already but unfortunately none of the answers have helped me. I want to upload an image file to my remote Web server (Apache). In my Excel cell, I have the file path of an image and want to use VBA to upload that file to a remote server.
I can't use any 3rd party tool in conjunction (like WinSCP), because that will make my product not very "portable-friendly". I was fine with Windows FTP, but it doesn't seems to be supporting passive mode and hence I also can't use that.
There are some threads which used IE to upload the file, and some which I believe are uploading via POST request by reading file in binary mode.
I want to replicate something similar to uploading files via HTTP POST on a website.

Where and how can I copy flash-animated html content inside a Lotus Notes database in order to invoke from a document or page?

I know Domino as a web server. In the data folder there´s an HTML folder which is normally the root of web content. But I want to put files and folders with all the flash stuff inside a Notes database (nsf).
I know I can do this via import through Package Explorer in the Notes Designer client. But where should I copy it into? Into webcontent folder?
I also know documents and pages can act as .html files. But there are also javascripts, .swf, .mp3 and other files.
How can I then invoke the starting point file like index.html?
I appreciate any helpful answer .. :-)
I know I can do this via import through Package Explorer in the Notes
Designer client. But where should I copy it into? Into webcontent
folder?
I would not recommend to put it on Domino server file system, it's very dirty way.
One document with one attachment/video. That would give you overview of all files you have in database plus possibility to add/delete them (require development skills little bit).
You can also upload your resources as Files as a design element, however that would require you design access each time you want to change them.
About invoking. Have a look here: Domino URL Commands
Also check this link: URL commands for opening attachments, image files, and OLE objects
For everything that is not plain html you can use file- resources. Linking them is as simple as write an url that looks like this:
hxxp://yourserver.com/yournsf.nsf/JSLibrary.js?OpenFileResource
You can find all possible URL- commands in your designer help or in this URL cheat sheet

IE6 opening XLSX file as an XLS file

My application generates XLSX files based on a users requirements.
After the XLSX file is generated the user is redirected to where the file is saved using Response.Redirect...
Response.Redirect("filename.xlsx")
When the user then opens the file... they recieve this message.
The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
As a temporary fix I've instructed my users to press "Yes" when they receive this message and the file opens perfectly fine.
Does anyone have any ideas why IE6 is trying to open an XLSX file as an XLS?
Note: I have a similar application that generates PPTX files in the same manner - and these open without a problem.
I've found that it is an issue with older versions of windows server.
Both the xlsx MIME type needs to be added and there are also a couple driver updates that need to be installed (I don't know specifically which ones. Our IT department is taking care of it)
To add the MIME type: Go to IIS Manager and add the .xlsx MIME type. (Documentation).
The MIME type that needs to be added is:
File Extension: .xlsx
MIME Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Further information on this can be found here: http://technet.microsoft.com/en-us/library/ee309278(office.12).aspx
I think, you cannot solve that problem by hosting or etc. it depend on your computer...
Here is the fix from Microsoft website ;
To configure Internet Explorer to open Office files in the appropriate Office program by using the Folder Options tool:
Open My Computer.
On the Tools menu (or the View menu), click Folder Options (or click Options).
Click the File Types tab.
In the Registered file types list, click the specific Office document type (for example, Microsoft Excel Worksheet), and then click Advanced (or click Edit).
In the Edit File Type dialog box, click to clear the Browse in same window check box (or click to clear the Open Web documents in place check box).
Click OK.
Here is the link http://support.microsoft.com/?scid=kb%3Ben-us%3B162059&x=13&y=13

Upload a .pdf file to a Sharepoint Document Library

Within an Access 2007 application, I'm creating a static report in .pdf format. I want to create it, then export the static report (not the data itself) to a Sharepoint Document Library. The intent is for it to be a public repository, no versioning. Each report will carry a unique name.
I'm a seasoned vba programmer, but using Sharepoint services is new to me. How do I go about doing this? Assume I can identify the file name and location after I've generated it, and I know the Sharepoint library URL, and have permissions. Where do I go from there?
Microsoft did some magic in SharePoint to make the libraries appear as Windows network shares to the clients. So, your program can just save the file to the UNC path.
So if you are logged on as a user with permissions to the library and the URL to the library is http://SHAREPOINT/Department/Files/ (for example), you can just save or copy the PDF files to \\SHAREPOINT\Department\Files\.