Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Cannot print container from macro

Hi,

I'm trying to print a container containing specifically formatted text objects from a macro for a variable amount of times.

This is the macro:

For i = 1 To ActiveDocument.Variables("vNumPrints").GetContent.String

     ActiveDocument.GetSheetObject("CT01").PrintEx ActiveDocument.Variables("vPrinterName").GetContent.String, false

Next

I have no problem printing a text object alone, but for some reason Qlikview will not print containers from the macro.

Does anyone know an alternative / solution?

Thanks in advance

1 Reply

Re: Cannot print container from macro

I'm not sure if it's possible maybe you need to activate the container-objects or use another print-method - see here Re: How to activate object in a container on active sheet and have a look into APIGuide.qvw in your install-folder.

Alternatively you could use reports to print your container and/or (unfortunately very often) you need specialized print-sheets and print-objects.

- Marcus

Community Browser