I have a simple WPViewPDF v3 PLUS program that works flawlessly on a local workstation, but will not run from (or save pdf to) a server folder.
The program:
1) loads a template PDF from server (this always works)
2) uses stamp function to add a line of text
3) saves the resulting PDF to a new name
That is - if my program runs local I can't save a pdf to a network share, and if the program runs from a network share, I can't save a PDF to local OR network share.
Have you seen this before, or is this likely something specific to a customer network?
Set up WPViewPDF:
Code
WPViewPDF1 := TWPViewPDF.Create(self);
WPViewPDF1.ViewerStart(your_wpviewpdf_dll, your_lic_name, your_lic_key, your_lic_code);
WPViewPDF1.Parent := tsPreview;
WPViewPDF1.Align := alClient;
WPViewPDF1.ViewControls := [wpHorzScrollBar, wpVertScrollBar];
WPViewPDF1.ViewOptions :=
[
wpExpandAllBookmarks,
wpDontUseHyperlinks,
wpSelectPage, // Allow page selection
wpPageMultiSelection, // in fact multi selection
wpShowPageSelection, // Allow selection with keyboard
wpViewThumbnails, // enable thumbnails
wpInteractiveThumbnails, // Allo page movement in thumbnails
wpHidePageSelection // But do not display the selection in main view
,wpAllowFormEdit
];
WPViewPDF1.Plus.Enable(0);
Alles anzeigen
To Load the template:
WPViewPDF1.LoadFromFile(FTemplateFileName);
To Save it:
WPViewPDF1.Plus.SaveToFile(FDestinationFolder+edt1.Text+'.pdf') ;
Thanks,
EdB