Overwrite the existing pdf file as report in a path:

Hi,
If already a pdf file is save with a name pdf1, then once again it does not allow the same pdf1 to save in the same location then a warning message will be prompt like already exists .Hence if we use the following code it does not warn and allow save.

public void init()
{
super();
// suppress overwrite message
element.printJobSettings().warnIfFileExists(false);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s