Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
PoojaPrasad
Creator II
Creator II

How to make a picture box in Nprinting wait for some seconds before it continues printing in Script

Hello Experts,

I want to apply wait command in script section of my picture object in Nprinting

private void pictureBox1_AfterPrint(object sender, System.EventArgs e) {
wait(10000);
}

This is to ensure, pictures are rendered before Nprinting server proceeds with further printing.

But with above code, I am getting the error that:

The name 'wait' does mot exist in the current context.

Is there a way to make the picture box wait after rendering so that images are displayed properly?

Labels (1)
1 Solution

Accepted Solutions
PoojaPrasad
Creator II
Creator II
Author

Hi,

I am sorry but its pretty much related to Nprinting because I am writing the script in pixel perfect report Nprinting template.

The code right now I am using to make the picture box object wait:

private void pictureBox1_AfterPrint(object sender, System.EventArgs e) {
System.Threading.Thread.Sleep(10000);
}

So, closing the thread since I already got the solution. Thank you!

View solution in original post

3 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

this is not NPrinting related question. You may want to ask it in Qlik Sense extensions section. 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
PoojaPrasad
Creator II
Creator II
Author

Hi,

I am sorry but its pretty much related to Nprinting because I am writing the script in pixel perfect report Nprinting template.

The code right now I am using to make the picture box object wait:

private void pictureBox1_AfterPrint(object sender, System.EventArgs e) {
System.Threading.Thread.Sleep(10000);
}

So, closing the thread since I already got the solution. Thank you!

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

No worries. From post It was not clear where you were putting your script. Glad you found solution. Cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.