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: 
Not applicable

Saving a document in a folder named as a field

Hi all,

I have to save a pdf document in a folder named like a field.

For example:

Table name: Table1

Field name: Field1

Record available:

Field1
Dog1
Cat2
Rat3

I would like to have a folder named:

C:\Dog1\Dog1.pdf

C:\Cat2\Cat2.pdf

C:\Rat3\Rat3.pdf

How do I do?

Thanks everyone.

Bye

Adriano

1 Solution

Accepted Solutions
Stephen_Jasionowski

You can create a recipient in NPrinting for each of the Field1 values. Then attach a filter to the recipient for that particular field value, so the PDF for Dog1 will only contain Dog1 data.

How to Create and Import Recipients with Filters and Distribution Groups – Customer Feedback for Viz...

After you set up the recipients, as part of a report task, you can choose an output path with a recipient subfolder:

Capture.JPG

This will distribute the PDFs the way you want. Just make sure that all the Field1 recipients are included in the task as well. It may help to create a distribution group for these recipients so it will be easier to automate new recipients in the future.

View solution in original post

10 Replies
Stephen_Jasionowski

You can create a recipient in NPrinting for each of the Field1 values. Then attach a filter to the recipient for that particular field value, so the PDF for Dog1 will only contain Dog1 data.

How to Create and Import Recipients with Filters and Distribution Groups – Customer Feedback for Viz...

After you set up the recipients, as part of a report task, you can choose an output path with a recipient subfolder:

Capture.JPG

This will distribute the PDFs the way you want. Just make sure that all the Field1 recipients are included in the task as well. It may help to create a distribution group for these recipients so it will be easier to automate new recipients in the future.

andrespa
Specialist
Specialist

Hi Stephen,

Can I do this with a Macro? I know it's not the best way to do it, but in my company we're not gonna have Nprinting at least for now. So, as far as I need to solve certain problems regarding something simliar to this post. Have you any ideas of how to write a macro to do that?

Best regards,

Andrés

Not applicable
Author

As stephen pointed out, there are many options under the output folder.  The option stephen selected will add the recipeint sub folder value (which needs to be adde for each recipient) to the overall task folder defined in Options

as you can see from the options, you can define a specific folder for each recipient or you can also select from variables, fields, etc (see atached) for your output folder

Stephen_Jasionowski

Outside of NPrinting, I wouldn't know how/if this is possible with a macro

Not applicable
Author

Thanks, the proposed solution was exactly what I needed

Bye

Adriano

adriano_fornoni
Contributor III
Contributor III

How could I maintain the Field variable and the function to updating the Recipient list in the Report Task?

Bye Adriano

Not applicable
Author

I would recommend making each recipient part of a group and then assign the group to the task (instead of the individual recipients).  You can then schedule an import task the would update your recipient lsit, which also updates the group - this will avoid having to update the individual recipients assigned to the task

adriano_fornoni
Contributor III
Contributor III

Sorry but I can't, or rather I don't know how, update the Recipient Group from Imports Recipient

With a Macro? What options in the Task?


Thanks very much and bye

Adriano

Not applicable
Author

Adriano,

When you import recipients, they can be put into groups.

If you put a group into a Task as a recipient, this will automatically get updated as new recipients are imported.

Tutorial on groups:

How to Create Recipient Groups – Customer Feedback for Vizubi

Tutorial on recipient imports:

How to Create and Import Recipients with Filters and Distribution Groups – Customer Feedback for Viz...

Best

Aran