Here's a short console program that covers the basics of making, copying .xmlx files. It's a great intro for me to OpenXML and in combination with a few other samples off CodeProject taught me a lot already in the past day:
https://social.msdn.microsoft.com/Forums/office/en-US/b28a9f9c-9ad7-4eea-adab-b062883c11e2/formula-cells-in-excel-using-openxml?forum=oxmlsdk
I cannot create a new sheet, a new tab. Cannot. Tried for hours. It even shows that it can be done in a separate function that makes a new workbook. Try as I might, I have utterly failed at integrating those statements that make extra sheets into the upper function that just opens and reads an existing workbook. Hours and hours and hours, and I can't get a functioning workbook with more pages than were in the workbook that it copies from.
Can someone help? Thanks.
Related
This is the first time we decided to use QlikSense. So I am a newbie.
I have developed a sheet for a table report.
I loaded a lot of data and I made a lot of renames on the fields when they are loaded from the database to look pretier for searching in the Analytics tab.
In order to show my progress to my boss I had to publish my work. He wanted to use another type of user. So I published the App, but I lost the ability to edit anything especially the data loading. Unfortunately that means I have to restart my work.
Any suggestions on how to restore my progress?
(It sounds to be an off-topic question probably...because there is no code in here)
I am using Tableau Desktop 10.0 and Tableau Server 10.0.
I have published my workbook on Tableau Server. After that I am trying to make copy of my workbook which consists of 30+ sheets. When I am trying to save my workbook by other name (using Save as option) it is taking 3-5 minutes which is quite long. I am trying to figure out why is this happening? I have used quick filters on every sheet. Is because of this the process slows down?
Please help me to figure it out.
Thank you.
I work for a large financial institution and all our web sites need to be accessible for people with disabilities. We are using Eclipse BIRT to generate some reports and I want to explore if anyone out there has any experience in making the reports accessible. The main problem is that there is a lot of data in the report and some of it may not be understandable by the value alone, for instance a string like "123444" may be an account number, a check number or a transaction id. In a pure HTML page we will either use a dl/dt/dd construct to make it clear the purpose of the date, or we use ARIA attributes like aria-labelledby.
Another area of concern is the creation of accessible PDF files.
Any help or report on experience will be greatly appreciated.
Given your description I presume that you are focusing on blind users. One of the most popular screen readers for English language use is JAWS by Freedom Scientific There is a free trial version which you can download for testing and/or your organization can purchase a copy.
You can read your report with JAWS and find what issues need to be addressed. Proper labeling conventions for buttons and such is probably the most overlooked by developers. (i.e. Button123 with Image1A is the submit button, JAWS can't read the picture of words in the image, soo...)
Speaking from experience (I am closely associated with a blind computer user) stay away from PDF if you want it to be blind friendly. Web pages and text documents are much more blind friendly.
PDF works to create a version of a document that is static for visual appeal. In the process is chops up the text, when JAWS tries to read it it will read half of one item, then half of another, than maybe jump back to finish the last 1/3 of the first, leaving the middle 1/6 for last, it is painful. Of course a PDF that does not have text layer (i.e. a picture of a word document) is not readable by any screen reader.
I would like to create a PDF of a specific sheet (not necessarily the active one) and send it as an email attachment. I've borrowed and tried several code snippets, but none work correctly. I've searched and analyzed all the forums I can find, but I can't figure out the issue. I'm a novice programmer, so I like it simple. This snippet is intuitive to me, but it gives the following error: "We're sorry, no servers are currently available. Please wait a bit and try again." Debugger says that both pdf and attach are undefined.
var pdf = SpreadsheetApp.getActive().getAs('application/pdf').getBytes();
var attach = {fileName:'test.pdf',content:pdf, mimeType:'application/pdf'};
MailApp.sendEmail(recipients, subject, body, {attachments:[attach]});
Three things:
can you help me get the pdf/attachment function working properly?
can you help me modify it for a specific sheet (say, Sheet1)?
is it possible to make a pdf out a range on a sheet rather than the whole sheet?
Thanks!
You're trying to apply methods of one Class to another that does not implement it. (e.g. getAs() isn't a Spreadsheet method.) When you're writing your script, pay attention to the autocomplete feature, which would have helped to avoid this error. See this previous answer for more details about that.
Answers:
See Google Apps Script to Email Active Spreadsheet, which demonstrates how to generate a PDF from a sheet.
To isolate a single sheet, see ajb1970's answer to the same question. The idea here is to copy the sheet you're interested in into a new, temporary, spreadsheet - and then make your PDF from that.
To do this with a range, repeat step 2, but with the range you're interested in.
Use getBlob not getBytes. Also you cant specify a specific sheet. Instead copy that sheet into a new spreadsheet, convert that one to pdf and later delete it.
I've been using UIWebView to render office docs for a while, but recently I noticed that when a date is added in the file, let's say an Excel file with a date value in one of the cells, the date is (apparently) being modified by the web view.
The weird thing is that I made a test based on two projects. The first one, is a project that I've been working on for about a year and the second is new one that I created just for testing purposes.
The dates are being displayed correctly in the new project, but wrong in the old project so I'm starting to think is something regarding the project settings. I also copied the classes from the new project to the old one to see if there was a difference, but even using the new classes, my old project shows incorrect(*) dates for the same excel file.... so that's weird.
Any ideas?
Thanks in advance
Update 1:
(*)By incorrect dates, I mean there is a time difference between the one displayed in the test project and the one displayed in the old project for the same file.
I changed the title of the question from "... invalid dates" to " ...time difference between" ... because the word "invalid" may lead to a misunderstanding.
I was not able to understand what the problem was, but the solution for now is to change the visualization component from UIWebView to the QuickLook framework.
I know this is not the correct answer to the question, but at least is a way to display the document correctly.