I have a file_name.iqy file which I am trying to open automatically within Excel 2016.
The contents of the file are this:
WEB
1
https://link goes here
Selection=3
Formatting=Rich Text
DisableRedirections=False
I want to add my credentials into this file so I can stop being prompted for them within the script that I am running (I am trying to automate logging into this site and grabbing the data which is downloaded as an .iqy file). Can anyone provide any assistance? Lastly, I have no reason to believe that link in the file is static for each download.
Ive tried this method http://username:password#example.com/ in the url. But it didnt work. Ive also tried using SendKeys from within Excel and the result in VBA is hanging at the part for credential entering.
Related
I have a transformation that has Table input to get the data from the Oracle server.
In order to export the data/table in Excel (xlsx) or CSV to the shared network drive, we all know to use Microsoft Excel writer or Text file output.
Que:
How to export the xlsx or csv files to Sharepoint?
What I tried so far (2 methods)
1:
I have got the link for my Sharepoint folder and tried connecting it using SFTP as below.
However, I get this error message.
2:
Used HTTP Client as below and surprisingly it runs successfully.
However, the file does not exist when checked in that folder in SharePoint. When I entered some random characters in the server name, it still runs successfully. So, I'm not sure where the file is being sent to by Pentaho.
Does anyone know how to upload the data file to SharePoint via Pentaho?
I have a sheet that has been shared with me. It has permissions set so that everyone in our company can read it.
I am trying to use Python to read info from this sheet, but am getting PERMISSION_DENIED. Using the same credentials file I can access any other sheets in my Drive, but not this one I have had shared with me - even if I add it to my drive.
What am I missing here?
The code I am using is from Google's own quickstart with the ID, range and print lines modified. I do not need to go much further than that.
When I test it with Google's own example it works fine.
If you are using a json file as credentials and the json was created as a Service Account, open that json and retrieve the client_email inside it.
Now make sure that the owner has shared the spreadsheet you are trying to read with that email (usually it ends with .gserviceaccount.com)
I want to export a table to an Excel file. I need to export a report.
ORA_EXCEL.new_document;
ORA_EXCEL.add_sheet('Sheet name');
ORA_EXCEL.query_to_sheet('select * from mytable');
ORA_EXCEL.save_to_blob(myblob);
I saved my table to blob.
How do I export/respond to the user (client)?
I need something that is simple to allow a user to be able to download an Excel file to their own computer. I tried doing this procedure in an Oracle workflow:
ORA_EXCEL.save_to_file('EXPORT_DIR', 'example.xlsx');
But this did not help, because it is saves the file to a directory on the server and I need it in the real server.
The way I have handled similar issues in the past was to work with the systems people to mount a directory from either a web server or file server on the Database server.
Then create a directory object so that the procedure can save to a location that is accessible to the user.
If the files are not sensitive and there are a limited number of users then a file server makes sense as it is then just a matter of giving the user access to the file share.
If files are sensitive or this is a large number or unknown users we then used the Web server and sent a email with a link to the user enabling them to download their file. Naturally there needs to be security built into this to stop people being able to download other users files.
We didn't just email the files as an attachment because...
1) Emails with attachments tend to get blocked
2) We always advise not to open attachments on emails. (Yes I know we advise not to click on links as well but nothing is perfect)
Who or what is invoking the production of the document?
If it´s done by an application, which the user is working on, this application can fetch the BLOB, stores it at f.e. TEMP-Directory and calls
System.Diagnostics.Process.Start("..."); to open it with the associated application. (see Open file with associated application)
If it´s a website, this one could stream the blob back as Excel-Mimetype (see Setting mime type for excel document)
Also you could store in an Oracle-DIRECTORY, but this one has to be on the server and should be a netword-share to be accessible for clients (which is rarely accepted in a productive environment!)
If MAIL isn´t the solution, then maybe FTP can be a way to store files in a common share. See UTL_TCP - Package, with this a FTP-transfer can be achieved (a bit hard to code, but there are solutions to find in the web) and I guess, professional tools that generate Office-documents out of Oracle-DB and distribute them do it like this.
I'm trying to integrate with Microsoft OneDrive service. I read API docs and went throw Authorization. Unfortunatelly, there's no info in docs about creating different File types.
I created a .txt file using HTTP Requests as it's written here https://dev.onedrive.com/items/upload_put.htm .
When I'm trying to create an Excel file this way, it does, but the document doesn't open. I think I need to send some special params (metadata?) also, but I don't know which ones.
I would be very pleased for any help :)
I have a use case that seems pretty simple, but after Googling around I can't find a solution. I have some Word documents on an FTP server and I'd like to be able to create a link that would download them into Word and then allow the saved changes to be sent back to the FTP server.
The problem is that I can only get Word to either open the file from the FTP server as read-only and I can't save the changes back to the server automatically, or the file downloads to a temporary location which isn't automatically saved back to the server. I'm creating my link like this:
Test
Frustratingly, if I go into Word File|Open and paste the link "ftp://ftp.example.com/www/uploads/Image/test.doc" I can save back to the server. What gives? Is there a solution? From Googling around it seems that Sharepoint offers this ability, but that's not practical for us. We're using IE7 and Office 2003.
I believe Microsoft Word can read / write WebDAV - see this question:
Editable Word Document from JSP
Can you set up some kind of proxy that can connect via FTP?
Read this link http://www.webdavsystem.com/server/documentation/ms_office_read_only (is actually about webdav, but I'd guess this is the same issue for FTP), there is a section on on opening weblinked documents in non-readonly mode. Which needs some changes on the client side...
HTH
Tim
Solution for IE:
Put a file on ajaxbrowser.com (this is WebDAV Server for testing) and replace file's full path in the next code:
var openDocumentsObject = new ActiveXObject("SharePoint.OpenDocuments");
openDocumentsObject.EditDocument('http://ajaxbrowser.com/mydoc.docx');
Another example:
<a href='http://ajaxbrowser.com/mydoc.docx' id='urltarget' target='_blank'>Edit through URI</a>