Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Generating Images (Gauges)

I've figured out how to generate images for charts. The problem now is with Gauges, they generate an image per Gauge (which makes sense, because it's per objectID that I loop through to Export). The Gauges "loses" their label so makes it a bit difficult to figure out which is which.

I was wondering if there's a way to group these gauges so that when I export to bitmap through the macro, that the group of 4 gauges generates as ONE image?

6 Replies
Not applicable
Author

Maybe generating image of the Sheet might help.

Not applicable
Author

How would I be able to do/test that?

Not applicable
Author

sub SaveSheetImage

ActiveDocument.Sheets("Main").ExportBitmapToFile "C:\MyImage.bmp"

end sub

Not applicable
Author

That does help, but the image has a lot of white space, is there anyway to crop it to be as big as whatever is visible (so if the guages is 100px in height, not to show 100px + 600px of white space)

Not applicable
Author

That's a strictly VBA macro question. You can get better help on a VBA dedicated forum.

Not applicable
Author

Even though it might be a VBA Macro question, the reason why I asked it here is because I'm not sure if QlikView's object has like power point has:

  .PictureFormat.CropLeft = 10
 
.PictureFormat.CropTop = 10
 
.PictureFormat.CropRight = 10
 
.PictureFormat.CropBottom = 10