SAS / Graph: Creating editable (ungroupable) graphs in powerpoint 2010 - sas

I have been creating graphs using proc gplot and ods rtf destination for a while. This would create output in word (with graphs embedded as .png files). I'm currently using device=png option.
To edit the graphs, titles, footnotes etc I would simply copy and paste each graph into Powerpoint 2010 then ungroup. This enabled me to change most aspects of each graph.
However I have upgraded to SAS 9.4 recently and now when I select "Ungroup" in powerpoint the graph simply disappears and I'm left with a blank slide!
If anyone could help that would be great. I did try ODS powerpoint by the way but that simply added graphs as .png and then had the same issue when ungrouping.
Your help is much appreciated!

Related

need a tool or editor to read SAS files for free

Need a free editor or tool to read/open .sas7bat or .wpd files.Trying to open/read a sas files.I don`t have SAS installed
tried using sublime and notepad++
SAS provides a tool called SASĀ® Universal Viewer
From the link:
The SAS Universal Viewer is a replacement for the SAS System Viewer. The SAS Universal Viewer enables you to view, sort, and filter SAS data sets and other simple text-based files. You cannot edit SAS data sets with the SAS Universal Viewer. You do not have to invoke SAS or install SAS on your computer in order to use the SAS Universal Viewer.
The most recent release is SAS Universal Viewer 1.42.
You can use this free tool: www.clinbay.com/datasly which allows to open SAS datasets in .sas7bdat and XPT formats, and also export them to Excel format as well.
You can pull them into R using the Haven package (part of the tidyverse)
https://cran.r-project.org/web/packages/haven/readme/README.html

Dynamic format in aspose.cells generated excel

Is it possible to create a conditional format or something like that where the format is depending on the value of the cell?
For example when there is "#000000" as cell value, the background color of the cell should be black.
It is possible to have a condition on the cell value but I did not find any example where the format is dynamic. And it is no Option to create a format for each possible hex-color =)
Yes it is possible to add such a conditional formatting dynamically using Aspose.Cells. Please add your desired conditional formatting using the Worksheet.ConditionalFormattings collection. It will be better if you create your conditional formatting using Microsoft Excel and then load your workbook using Aspose.Cells and observe the properties of your conditional formatting object by exploring Worksheet.ConditionalFormattings collection and then create the same conditional formatting object through code. If you find any difficulty, then please feel free to post in Aspose.Cells forum on Aspose Website.
Please also see this article for your help in working with conditional formatting.
http://www.aspose.com/docs/display/cellsnet/Conditional+Formatting
Note: I am working as Developer Evangelist at Aspose

Visual c++ load rtf document contains images and text in richedit box?

I am currently working on a project. I have an rtf file which contains some text and images both. I need to display those images and text from rtf to richtextbox in Visual C++. We are not using .Net frameworks or MFC's so everything is in Visual C++ only.
I do'nt have any idea how to do it. If anyone can guide me then it will be really helpful. Thanks in advance.
RichTextBox cannot load HTML. It can load only RTF or plain text.
There are 3rd party components that can convert HTML to RTF, but they don't really do a good job especially when dealing with images. I had done intensive research on this for my sticky notes product Notezilla.
You can use the Web Browser control to show your HTML.

copy specific columns from notepad++ to excel sheet

Can I use macros in notepad++ to select specific columns and paste these columns into specific cells in excel sheet automatically. If possible how?
Please help on this or any other suggestions may help in routine tasks with a lot of copy and pasted to be run automatically
EDIT: Added info on automation tools.
You don't need macros. Notepad++ has column mode which allows you to select text columns and copy it on clipboard which you then can paste in Excel. See here for a little video about how to do this: http://notepad-plus-plus.org/features/column-mode-editing.html
If you want to automate this process then you need automation tool that will record your keystrokes/mouse and other activities and replay whenever you need it. Below are some of the tools that does that and may fit your need:
Sikuli
AutoIt
AutoHotKey

How do I plot the output from a C++ Win32 console app?

I have a small Win32 console application which is essentially a test harness. I read data in, do some processing on it and currently just output some of the numbers to the console. This isn't a huge problem - I can get an idea of what the data looks like, but it would be much easier to analyse if there was a way of getting that information into a graph for each run of the software.
I've been getting to grips with GNUPlot recently, but can't work out a simple way to get the data sent to it. Has anyone tried this? ..or is there another graphing application I should try?
Excel and OO Calc are great tools and I've loaded .csv data into them for graphing data plenty of times myself. I was, however, hoping for a way to dynamically pipe data into a graphing application to avoid having to close/reopen excel and plot a graph each time I want to look at some data.
I think you can pipe data into GNUPlot (which is why I mentioned it) but the details of how to do so are rather scant.
A simple approach is to wtite the data out as CSV and then import it into a spreadsheet like Excel or OpenOffice to do the graph drawing.
Edit: Following your question, I got interested in GNUPlot myself - this is the simplest description of using it from the command line that I found: http://www.goldb.org/goldblog/CommentView,guid,f378e279-eaa5-4d85-b7d2-0339a7c72864.aspx
Never underestimate the power of Excel and a .csv data dump.
Writing data to a .csv file form C++ is not very difficult and there's lots of articles out there regarding the subject, for example: here, or just google.
Excel can easily load .csv's and then you can just use that to plot whatever graphs you require. THis is particularly useful if you just want a quick visual sanity check of results etc.
You don't really need to touch VBA to do this
In Excel you can set up a Data Connection to a file, it supports many files type but CSV does work fine.
Go to List item
Data Tab
Click Connections
Click Add
select the file
go to the connection properties - un-tick prompt for file name
set the required period.
close the connections dialog
select the start cell for importing the data - cell 1a on worksheet 2
click existing connections
select you data connection
flip to worksheet1 add your chart and hookup the data.
the chart will now update automatically
this is Excel 2007 - but think older version had this and I think OO can do it to.
You might also want to look into XMGrace which allows you to launch it and drive it dircetly from C/Fortran programs as shown here
Excel is completely script-able. Use the macro recorder to figure out the steps. Create the chart in its own sheet. Then save the chart using the GIF filter.
The actual import is something like:
ActiveChart.Export FileName:=something_dot_gif, FilterName:="GIF"
I just found an example of piping data into gnuplot on Cardiff University's website. Not tried it yet, but it looks promising!
[edit] ..and another which includes some notes for windows.
You can use MathGL - it can create a window (FLTK, GLUT or Qt) and display plot inside. Also it have large set of plot types and can work in console.