Save as in Preview

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Save as in Preview

Postby KHentschel » Mon Aug 05, 2013 2:44 pm

Hello,

I read in the Help Files that it is possible to preset the File Suffix when saving a File from the Preview. I want to change to save to * vpe into *.pdf. Which is the correct Property / Method to do this in thge ActiveX Component?

thanks a lot

Klaus
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: Save as in Preview

Postby IDEAL Software Support » Mon Aug 05, 2013 9:15 pm

See the property SaveFileName, set it for example to "*.pdf".
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Save as in Preview

Postby KHentschel » Tue Aug 06, 2013 2:43 pm

it do not work

i work with Visual FoxPro and put the following Code into the INIT Routine
THIS.vpe1.SaveFileName = ADDBS(gcOutputDir) + 'doc.pdf'
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: Save as in Preview

Postby IDEAL Software Support » Wed Aug 07, 2013 7:46 am

It works here. What version of VPE are you using?
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Save as in Preview

Postby KHentschel » Wed Aug 07, 2013 8:04 am

i work with the Version 6.1
When i click on the Save Button in the embedded preview the first choice is to save it as VPE Document
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: Save as in Preview

Postby IDEAL Software Support » Wed Aug 07, 2013 4:12 pm

Let me try to clarify for the given example:

The selected file type is "VPE" in the shown FileSave-Dialog, but the file name written in the dialog is - as specified by code - "doc.pdf" ???

Here, we did three tests:
Vpe.SaveFileName = "*.pdf"
Vpe.SaveFileName = "doc.pdf"
Vpe.SaveFileName = "e:\tmp\*.pdf"

For all three tests the selected file type is "PDF" in the shown FileSave-Dialog.

Are you sure the structure of the file name you provide is correct? No missing path-delimiter "\", or something like that?
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: Save as in Preview

Postby KHentschel » Thu Aug 08, 2013 7:34 am

Sorry ;-) i do a mistake... i call the SaveFileName BEFORE the OpenDoc. After correcting this i became what i want... the File Typ PDF

MANY THANKS !!!
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 10 guests

cron