Saving document open in external window
Hello all,
as always, I seem to be stuck ;-)
I have an application that embeds the Acrobat control, opens a document and performs some operations on it using a plugin which is being "remote-controlled". The only thing I can't seem to get to work is to save the changes.
What I essentially want is to save the changes into the same file, which doesn't seem to be possible if Acrobat is being embedded. At least an incremetal save seems to work if Acrobat is running in normal standalone mode.
What is the preferred method to do what I want? Since I can seemingly save the changes into a temporary file I suspect that I somehow need to save the temp file, close the currently viewed doc, rename the file and to open the new one, which doesn't seem to be a "nice" solution. Even if this would be the only option I can't get it to work.
Is there anyone who might be able to help me?
Thank you very much for your time,
Steffen.
Here's the snippet that I've been trying most recently:
ASInt32 objDocFlags = PDDocGetFlags(objPDDoc);
if ((objDocFlags & PDDocNeedsSave) != 0)
SendInfo(1, 2, "A");
DURING
PDDocSave(objPDDoc, PDSaveIncremental, NULL, NULL, NULL, NULL);
SendInfo(1, 2, "B");
HANDLER
SendInfo(1, 2, "C");
END_HANDLER
"SendInfo" is something that just transfers some information to my controlling application to make it easier for me to "debug". In my case, I'm getting an "A" and a "B", meaning that nothing is being thrown. The code above is incomplete, as I'm also checking if the PDDoc needs to be saved - I also tried to get an appropriate ASFile to provide the correct file system, but that didn't change anything.
Maybe I need to add that I have the requirement to save without any "save file" dialogs.
Similar Messages
-
Error while opening the external window
Hi
I am trying to open an external window on click of a button.
This is the piece of code I have written
url = "http://www.google.com";
url = java.net.URLEncoder.encode( url ) ;
String title="External Window";
//IWDWindow win=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);
IWDWindow win=wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,title );
win.show();
//win.open();
I have tried both show() and open() method. and also createExtrenalWindow and CreateNonModalExtrenalWidnow. But I am getting the follwing error.
Application error occurred during request processing.
Details: com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'dc.gs.com/osrch' and application 'http:' are not deployed on the server. Please check the used URL for typos.
Exception id: [0017087D8739002C0000025600001B9C00045A7873FC3E52]
This is the URL it got in the external new window..
http://<host>:50000/webdynpro/dispatcher/dc.gs.com/osrch/http%3A%2F%2Fwww.google.com
I know the www.google.com is concatenating with portal URL , hence it is throwing the error.
How to get rid of the portal path
thanks
PKhi,
You can try the following code:
IWDWindowInfo info = wdComponentAPI.getComponentInfo().findInWindows("PopUpWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(info , true);
window.setWindowPosition(WDWindowPos.CENTER);
wdContext.currentContextElement().setVa_win(window);
window.open();
This works fine.
Thanx. -
Target Document open in new window DEFAULT?
Hello,
I am working with a 50+ page document, each page has a TON of links, some shoot to websites, other pages in the document and finally... launches new PDFs on the DVD (to specific pages).
My question is this: I am going through Acrobat and modifing all the buttons that launch other PDFs. After I set the link, i have to modifiy that link to have the document "Open in: New Window"
Is there a way to automate that? Set that option to be default? This would cut a ton of time out.
Thanks in advance!It doesn't happen that way here. A new instance is always opened when I invoke from the run box.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
Opening an External Window which shares the same context.
Hi,
I have a requirement where <b>I need to open an external window which shares the same context</b>. (i.e, A window which belongs to the same application in a seperate browser)
If I use the following coding <b>it only opens a model window in the same browser</b>.
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("NewWindow");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(winInfo,false);
But if I use wdComponentAPI.getWindowManager().CreateExternalWindow() <b>it could only accept the URL that opens a seperate application with different context</b>.
Please help me in this regard.Hi Anbu,
Dont feel bad that i am asking you more questions than giving you answers.
if you just want to show content or let the user enter data or something you can use always popup modal/non modal window.
External window is used to refer to other website or other applications in otherwords referring other url.
So your workaround would be relaxing your requirement and redesign your application.
This is my view point.Probably some other expert sdn'ers might have better one you know.
Success !!
BTW- if you decided to follow nagarajan suggession then you have to use URL generator to generate the URL.Using static URL is depreciated and also wont work in your Customer places.
Message was edited by: Baskaran Senthivel -
Can we open an external window From ESS DC?
Hi,
Can we open an external window on the click of a button in an <b>ESS dc</b>?
I am trying to call another web dynpro application as an external window from ESS DC.
I am doing something like this in the action handler method:
IWDWindow window = wdComponentAPI.getWindowManager()
.createExternalWindow("http://hostname:port/webdynpro/dispatcher/local/FirstAction/TestApp?SAPtestId=2", "Test", false);
window.open();
It doesnt work. Am I doing something wrong?Solved it myself
-
every time i open a word document ALL my word documents open as seperate windows. Same with powerpoints. How do I fix this? Its getting really annoying.
If you are using Apple's Mail app, whichever os you have, post in its os/Mail forum area.
-
Open a external window like URL Link but from my button
Hi,
I want that when I press a button, open a new window to (for example www.google.com) like when i push a url link. How can I do that?.
Regards,1)get api from comp controller ( see wizard)
2)GET window manager (also on wizard)
3)Create window using CREATE_EXTERNAL_WINDOW (check window manager methods)
The object returned is of type if_wd_window
4)The call the OPEN WINDOW method.
Regards
Phil -
Document opening in maximized window
I am using Adobe Reader 9.1, Windows Vista, and IE 8.
I have Reader set to not open documents in the browser.
When it opens a document, the document is always opened in a maximized window. Is there anyway to change this? I tried "un-maximizing" the window and closing it and re-opening the document, but it opened it in a maximized window again.
I've tried every setting I can think of in the preferences for Reader, but it keeps doing this.
Any help is much appreciated.
Thanks!
BillHi,
Check this .
http://help.sap.com/erp2005_ehp_04/helpdata/EN/0e/a1e94205045604e10000000a155106/frameset.htm -
Saving documents on the external hard drive that already contains documents
I have just purchased a new iMac and I want to save documents on an existing external hard drive I have. When I try to save the document is says Macintosh HD read only. And when I try to print documents that are already in the hard drive it says Secured documents. Help!
You can use one of those software, or put your Mac in virtualized Windows mode to write to it, or put the hard drive back in a PC and network to the PC.
Virtualization tools are shown here:
https://discussions.apple.com/docs/DOC-2741 -
Saved document opens back up with none of my data present!
Help! My wife was working on a Pages 3.0.2 document for two days. She saved it several times while working on it. This evening while working on it, all of a sudden, everything just vanished! She hit the return key, and then, poof! it was gone.
Unfortunately, she then saved the file again before closing Pages.
I'm thinking she's dust at this point, but is there any hope? I know, I know, Time Machine would have it, but it wasn't activated on her machine. Doh!
Any help would be most appreciated.MicBoy,
Welcome to Apple discussions.
Would you like the phone number of a good divorce lawyer?
Sorry.
I'm afraid your first inclination was correct. The file's gone. If you save a blank file over a previously filled one, the last save trumps all.
-Dennis -
Invalid URL Exception while opening a file using external window in webdynp
I am trying open an URL ythru external window on click of button in my webdynpro.
This is the URl I am trying to open
File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
if I try to open from a from the browser it works fine but thru webdynpro it is throwing the error.
mww is another system where the file is residing.
But I am using the same techniue in other component where I am able to open file from an external window.
File://mww/Documents/Attachments/2008/10/56254/some.jpg
The only difference in the URL is {FD803B0D-157F-47F9-A5A8-C687E1DC6B96}Since this URL is generated by another system I do not have any other aletrnative but I have live with this URL.
can some body please give some idea how to fix this
if I use java.net.URLEncoder.encode() then I am not getting any error , buit file is not opening in the browser( external window)
below is the error stack I am getting.
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createNonModalExternalWindow(ClientComponent.java:1037)
at com.gis.dcww.findsrch.AttachmentView.onActionOpen_Attachement(AttachmentView.java:179)
at com.gis.dcww.findsrch.wdp.InternalAttachmentView.wdInvokeEventHandler(InternalAttachmentView.java:203)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
thanks
PKHi Armin, Josue
Thanks for the reply
Please note I am able to open an external window( browser ) thru my code with "File" protocol.
I have no issue opening an external window or using File protocol.
I am able to open an image/doc with a normal URL as follows
File://mww/documents/image.jpg
or
File://mww/document/temp.csv
But My URL has some system( thru Other applications ) generated charaters in it , I need get the path from DB( which I have done ) and pass this URL to the ExternalNonModalWindow as paramter.
MY code is opening successfully the external window for any URL .
but for URL which has these character { } is throwing the invalid URL error
for the below URL, I am getting the error
File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
thanks
PK
because of the flower bracket it is throwing the error.
thansk
PK -
Open View or Window in a external window (popup)
Hi experts!
I have the following issue:
- I know how to open a external window from a given URL, but my problem is that I want this new external window to open and show one of my own windows and I don't know how to get the window's URL. Any Idea???
Please help or redirect me to some doc or post. Thanks.
Osvaldo SilvaHi,
If you want the url of the another window in your WD Component. As per my knowledge you need to have a seperate application to be created for this window also.
For Example you have Window1 (View1 is embeded in this window) and Window2(View2 is embeded in this window). Now you need the url of the Window2.
So for this purpose you need to create two applications for this WD Component.
For example App1 (Created for Window1InterfaceView) and App2 (Created for Window2InterfaceView).
Now use this below code to open the Window2 URL in a sepearate window.
// Get name of deployable object this component belongs to
String deployableObjectName =
wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
Map urlParameters = new HashMap();
// If there are any application parameters you need to pass to App2 you can set those in urlParameters
// as urlParameters.put("key","value");
try {
// Get deployable object part of target application.
// Precondition: assume, that other application belongs to the same
// Web Dynpro Project (Deployable Object)
WDDeployableObjectPart deployableObjectPart =WDDeployableObject.getDeployableObjectPart(
deployableObjectName,"App2",WDDeployableObjectPartType.APPLICATION);
// Get target URL based on deployable object part and URL parameters
String urlToTargetApp =WDURLGenerator.getApplicationURL(deployableObjectPart, urlParameters);
//Open this urlToTargetApp in external window.
IWDWindow window = wdComponentAPI.getWindowManager(.createNonModalExternalWindow(urlToTargetApp,"Window2");
window.show();
} catch (WDURLException e) {
messageMgr.reportException(e.getLocalizedMessage(), false);
} catch (WDDeploymentException ex) {
messageMgr.reportException(ex.getLocalizedMessage(), false);
Note:/Warning: We are opening another window using another WebDynpro application.
Here it creates a seperate WDComponent instacne. You can't access Window1(View1)'s existing context data in Window2(View2). The only way is you can pass some data using app/url parameters.
Apart from this as per my knowledge there is no other way to get the url for a Window.
Regards,
Charan -
Open external window from custom controller
I have to write code to open an external window. It should be done from the custom controller and not from component. when i use the following code i get error " The method getWindowManager() is undefined for the type IWD Controller.
Pls note that I am using IWD controller here..
IWDController component = wdThis.wdGetAPI();
IWDWindow helpWindow =
component.getWindowManager().createExternalWindow(
helpUrl,
"help",
false);
Pls help..Hi,
Use
wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(URL, title, modal)
Regards
Ayyapparaj -
Open external window / window size
Hello,
is there a possibility, to open an external window and change the browser to fullscreen mode?
RegardsHi,
Check this code for Calling the External window with in the application.
DATA: l_cmp_api TYPE REF TO if_wd_component,
l_window_manager TYPE REF TO if_wd_window_manager,
window_result type ref to IF_WD_WINDOW.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
* IF wd_this->m_popup1_1 IS INITIAL.
wd_this->m_popup1_1 = l_window_manager->create_external_window(
url = 'ur URL
* title = 'My Report 1'
* ENDIF.
wd_this->m_popup1_1->open( ).
Here m_popup1_1 is the type of IF_WD_WINDOW.
Thanks. -
Create external window in Web Dynpro Java
Hello experts,
I am new in web dypro java as well as enterprise portal. I have a problem concerning external window.
I have created a button in my ivew in web dynpro java. By a click on this button, I would like to open an external window with a specified URL(ex: www.google.com).
Could you help me how to do it please?
Thanks in advance,
SenglyHi experts,
I have found the solution. Thanks to this link and thanks to all:
[Problem with linkToURL in a table column|Problem with LinkToURL in a table column;
best,
Sengly
Maybe you are looking for
-
When I go to Download it at your website it only gives me the option of the newer one...5.0 . How can I get back to running 3.5+ so I can use the university's course management system?
-
Reminders / expediters to vendor
Hi All, I would like to send delivery reminders to vendor automatically through email. I am doing the same in ME91F. Where in message i am taking as external send (5). When i generate message its saying message generated. But the same is not visible
-
Hi, I am having 8+ Years of experience in GIS field. Presently I am working as a Asst.Project manager. I wanted to do SAP-PS module from Seimens. So can anyone guide me whether my domain will be helpful for this or not. Thanks Sasikanth
-
EA2: Worksheet not identifying separate queries properly.
Given the worksheet contents below, pressing F9 with the cursor in either of the queries starting on line 93 or 103) causes it to select everything from line 63 onwards as the current query. There is a syntax error on line 81. If I fix that, the indi
-
Error when exporting from premiere pro CS6
I have been using PP CS6 since launch date- and have had none stop problems with exporting, I cant dynamic link, add to render ques or simply export straight from PP! When i Que my project it will export up until half way and then freeze, i've tried