Excel 2013 ignoring line transparency for shape - excel

I am building an application in Excel 2013 that draws graphs and then fills the area under the graph using AddPolyline to create shapes. I then color these shapes using RGB and Transparency.
Everything is working fine except that Excel completely ignores the Transparency factor for the Line.
myShape.Fill.ForeColor.RGB = RGB(R, G, B)
myShape.Fill.Transparency = T
myShape.Line.ForeColor.RGB = RGB(R, G, B)
myShape.Line.Transparency = T
Currently I am having to reside to a backup solution which is to just make the line invisible using:
myShape.Line.Visible = False
However, this leaves little white markers between my shapes that should otherwise be perfectly aligned.
I have tried things like making the line weight small etc.
Can anyone else confirm this behavior as a bug, or point out what I am doing wrong?
Edit:
Attached a screenshot of the issue.

Make sure what you are dealing is not a border but a true line. Check on LineFormat properties.
For a line, the LineFormat object contains formatting information for the line itself; for a shape with a border, this object contains formatting information for the shape's border.
Try myShape.Line.Visible = msoFalse
Not to forget that Transparency property LineFormat object infact refers to the specified fill of the shape.
You may also record a macro while following this tutorial to check the exact properties of polylines.
On another note, why don't you make the line colour as same as shape colour? In that case, there wouldn't be a different between the line and the shape. However this clearly depends on your usage and intention.
Few references to consider regarding buggy & awakward shape, line properties.

Related

Extra column inserted before other columns when exporting to excel

I know how tricky it is to align things in a way that allows a clean export to excel, however, on this one I am stumped and have never seen it before.
Anyone know why the excel rendering extension insists on inserting a column like in the attached image?
Things that I have tried.
Set the table's position to 0,0.
Removed all borders and padding.
Set the report margins to 0,0,0,0
NOTE : I am using the EXCELOPENXML rendering format as opposed to EXCEL in order to support *.xlxs.
Groupings:
First Column in the Designer:
The report was being rendered as a sub report and was placed in a rectangle and aligned right in the main report, however, the rectangle was one twip off from left align. Once I aligned the rectangle in the main report, the phantom column disappeared.

Excel - Changing design of bars in charts

In excel charts can we change design of bars from
to
Background: I have taken agile project plan excel template from https://www.smartsheet.com/agile-project-management-excel-templates, but I didnt like the bars without arrows and hence I want to change these bars to look something like bars in https://www.smartsheet.com/agile-project-management-excel-templates#agile-product-roadmap-template
Lead here is appreciated.
Half... Let me show and you decide :)
This arrow is not a chart object. It's a shape, a drawing:
However, we can use shape object in Excel charts.
Remove text (you'll see in the last picture why) and Copy the excel object (picture above).
Mark the chart series you want to replace (notice I marked all of them, small circles)
Then just paste :D!!
Notice one bar has a border line, just click on the bar -> "Fill & Line" -> "Border" -> "No Line" to hide the border line around your shape object.
You can do it individually with different colours. When the graph changes the size of your bars changes too (according to your data). It's a bit more "maintenance" but looks better. General rule, the better it looks, the more "special" it is (more manual involvement)...

Yellow Text in Solidworks, Can't Change

I'm working on a SolidWorks mechanical drawing generated from a 3-D model I created. I added ordinals to the drawing and text for the sheet title, but all of my text is coming out in yellow:
I've checked that the layer is set to 0, and that the color for layer 0 is set to black. I've also gone through the Options-->System Options-->Colors screen but it did not help me figure out why everything is yellow. It must be a local setting somewhere, because when I try opening the files on another computer it works fine. It's just a pain right now, though, because I need to export to PDF and it shows up as yellow in the PDF instead of black. Is there a setting somewhere that I may have missed?
I would personally go to the settings to determine what type of dimensions SolidWorks assigns the yellow color to.
Tools Options -> Colors -> Color Scheme
By doing that, you will able to figure out what's wrong with the dimension.
Generally speaking, yellow is assigned to dangling dimensions (Dimensions of parts they were modified or deleted).

Print Transparent Shapes

I have a map of the warehouse where I work, and I'm trying to make a heatmap of activity that has taken place within a certain aisle.
I have managed to get the VBA working by having permanent red shapes positioned over each aisle, then adjusting the transparency of each box according to the percentage of the aisle.
It looks great on screen, however the multiple methods i have tried for printing does not work;
Expected output (this is what it looks like on screen):
The various methods I have tried all produce the same result, these include :-
Printing directly
SaveAs PDF
Print as PDF (We have PDF virtual printer)
Save Range as a Bitmap
Copy Screen into a Chart, then save export the chart as image
Exported AS PDF :-
Saved as Bitmap :-
When it is printed it has different patterns within the red area, from what i have found, each pattern represents a certain transparency.
Short of using PRTSCN on my keyboard to get it and paste it into paint, i dont know how to move forward with this. This needs to be completely automated (ie, emailable and printable each day), so PRTSCR isnt really an option.
Any ideas would be much appreciated.
For anyone that manages to come across this, what i did in the end, was the get the % of 255 and to set the RGB color value of the shape.
Example psuedo-code below:
for each shp in Activesheet.Shapes
newTrans = 255 * Sheet5.Range("P" & i).Value 'New transparency
Shp.Select
Selection.ShapeRange.Fill.ForeColor.RGB = RGB(255, newTrans, newTrans)
DoEvents
next shp
This will give a shade of red, based on the percentage on sheet5.

excel exporting to pdf; graph placement offset

I have some trouble with a document when exporting it to pdf with the builtin pdf export function of excel (2010).
I've generated a graph on my worksheet, with some colored cells arround it. Visually it looks good (even if I zoom on it with the ctrl key + mouse wheel). But when exporting, the graph overlap the surrounding cells.
For example, on the image bellow, I take a screenshot of my graph in excel (at top) and in pdf (at bottom). The red part is my graph (I've colored the background of the graph object). The graph have a black border. And just on the top of the graph, I've colored the background of a cell in blue. Normally, the graph must not overlap the blue cell, because I've manually place it bellow (cut the graph, select the cell bellow the blue one, and past the graph to this emplacement).
But we can see that:
the black border overlap the blue cell (in excel and in pdf version; but it's not really my problem; I've understand that the border in excel object is at outside the object; and then overlapp surround objects/cells).
the graph (in red + the border) has not the same place in excel and in pdf, there is a big offset (it's not a resize problem, this offset is present and the left side too). The place of the graph is more on the left and more on the top in pdf version than it can be!
(I'm using this to automatically generate reports; and the result is not visually good)
Is there any way to overcome this problem?
Hmm, I can't replicate your problem, but I've had similar issues exporting Crystal Reports to PDF. Here's 2 suggestions, neither of which is perfect and I couldn't try them first (again, sorry I couldn't replicate the problem):
Add a white row with a very small height between the graph and the cell. It might even be visually more appealing than the 2 objects one on top of the other.
Make your graph's background transparent and hide the border. Maybe add some extra white space at the top of your graph. That way, they'll still overlap, but it won't be as obvious.

Resources