Conditional Page Print

Stimulsoft Ultimate discussion
Post Reply
David334
Posts: 29
Joined: Tue Jul 16, 2019 6:45 pm

Conditional Page Print

Post by David334 »

Hello, I am trying to have a page print based on the value of a record returned from a sql qry. Basically, if a customer is "X", print the page, otherwise disable it.
I looked at the conditions for the page, but all I am presented with is an option for highlighting, nothing more.

How can I enable of disable the page based on a variable?
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Conditional Page Print

Post by Lech Kulikowski »

Hello,

You can use the "Component Is Enabled" option in the Condition for that task.

Thank you.
David334
Posts: 29
Joined: Tue Jul 16, 2019 6:45 pm

Re: Conditional Page Print

Post by David334 »

This doesn't seem to be working.
I created a variable that is set to True or False depending on a customer name, then in the Conditions section of the page (under appearance), I used this as the expression: ShippingChkLst.Enabled=varriable.

Is this what you are talking about doing?
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Conditional Page Print

Post by Lech Kulikowski »

Hello,

Please check sample report in the attachment.

Thank you.
Attachments
ReportPageEnabled.mrt
(3.98 KiB) Downloaded 220 times
David334
Posts: 29
Joined: Tue Jul 16, 2019 6:45 pm

Re: Conditional Page Print

Post by David334 »

This is so unbelievably frustrating. I hate Shoptech with a passion!
I am yet another user of shoptech who is forced to use a butchered version of this software where they seem to break its functionality. Then when you ask for info on how to use the designer to modify reports they direct us here, which yields zero results because all the help you provide is useless in shoptech's modified version.
Not stimulsofts fault, just ranting out of utter frustration.

This file you attached is useless to me as I have zero way of opening it. If you could kindly have patience with me, attached is a screen shot of the section I am entering info in. Is this the correct location and syntax?
Attachments
ConditinalReportPage.jpg
ConditinalReportPage.jpg (117.26 KiB) Viewed 2112 times
David334
Posts: 29
Joined: Tue Jul 16, 2019 6:45 pm

Re: Conditional Page Print

Post by David334 »

Lech Kulikowski wrote: Fri Oct 15, 2021 1:03 pm Hello,

Please check sample report in the attachment.

Thank you.
Hello, thank you for this file. I was able to locate where shoptech loads its default reports and I replaced one with this so I was able to view it. It helped me tremendously, thank you thank you thank you!
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: Conditional Page Print

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply