About SaveAs method

Hi, all.
I want to convert a pdf file to eps through Illustrator in an MFC application.
Can I do this with only by open the pdf file, and save as eps file, this is just same like when I do it by operation.
The code is written below. But I'm facing a problem, even though the file name in SaveAs method set to ".eps", an .ai file was created not eps.
Anybody knows why ? did I something wrong or insufficient setting in this code ?
Illustrator::_EPSSaveOptionsPtr pEPS;
pEPS.CreateInstance(L"Illustrator.EPSSaveOptions");
pEPS->PutCompatibility(Illustrator::aiIllustrator12);
pEPS->PutCMYKPostScript(true);
Illustrator::_ApplicationPtr pXL = pEPS->GetApplication();
pXL->Open("C:\\Sample.pdf");
DocumentPtr pDoc = pXL->GetActiveDocument();
pEPS.CreCreateInstance(L"Illustrator.EPSSaveOptions");
pDoc->SaveAs("C:\\Sample.eps");

what if you use the documentSuite -> write(<File>,<eps-handler>,false)?<br /><br />the handler could be obtained by:<br /><br />int i=0;<br />for(; i< number of handlers; i++)<br />{<br />   if(handlers.get(i) is the handler that creates eps files)<br />      break;<br />}<br />if(i<number of handlers)<br />{<br />   write file<br />}

Similar Messages

  • A question about a method with generic bounded type parameter

    Hello everybody,
    Sorry, if I ask a question which seems basic, but
    I'm new to generic types. My problem is about a method
    with a bounded type parameter. Consider the following
    situation:
    abstract class A{     }
    class B extends A{     }
    abstract class C
         public abstract <T extends A>  T  someMethod();
    public class Test extends C
         public <T extends A>  T  someMethod()
              return new B();
    }What I want to do inside the method someMethod in the class Test, is to
    return an instance of the class B.
    Normally, I'm supposed to be able to do that, because an instance of
    B is also an instance of A (because B extends A).
    However I cannot compile this program, and here is the error message:
    Test.java:16: incompatible types
    found   : B
    required: T
                    return new B();
                           ^
    1 errorany idea?
    many thanks,

    Hello again,
    First of all, thank you very much for all the answers. After I posted the comment, I worked on the program
    and I understood that in fact, as spoon_ says the only returned value can be null.
    I'm agree that I asked you a very strange (and a bit stupid) question. Actually, during recent months,
    I have been working with cryptography API Core in Java. I understood that there are classes and
    interfaces for defining keys and key factories specification, such as KeySpec (interface) and
    KeyFactorySpi (abstract class). I wanted to have some experience with these classes in order to
    understand them better. So I created a class implementing the interface KeySpec, following by a
    corresponding Key subclass (with some XOR algorithm that I defined myself) and everything was
    compiled (JDK 1.6) and worked perfectly. Except that, when I wanted to implement a factory spi
    for my classes, I saw for the first time this strange method header:
    protected abstract <T extends KeySpec> T engineGetKeySpec
    (Key key, Class<T> keySpec) throws InvalidKeySpecExceptionThat's why yesterday, I gave you a similar example with the classes A, B, ...
    in order to not to open a complicated security discussion but just to explain the ambiguous
    part for me, that is, the use of T generic parameter.
    The abstract class KeyFactorySpi was defined by Sun Microsystem, in order to give to security
    providers, the possibility to implement cryptography services and algorithms according to a given
    RFC (or whatever technical document). The methods in this class are invoked inside the
    KeyFactory class (If you have installed the JDK sources provided by Sun, You can
    verify this, by looking the source code of the KeyFactory class.) So here the T parameter is a
    key specification, that is, a class that implements the interface KeySpec and this class is often
    defined by the provider and not Sun.
    stefan.schulz wrote:
    >
    If you define the method to return some bound T that extends A, you cannot
    return a B, because T would be declared externally at invocation time.
    The definition of T as is does not make sense at all.>
    He is absolutely right about that, but the problem is, as I said, here we are
    talking about the implementation and not the invocation. The implementation is done
    by the provider whereas the invocation is done by Sun in the class KeyFactory.
    So there are completely separated.
    Therefore I wonder, how a provider can finally impelment this method??
    Besides, dannyyates wrote
    >
    Find whoever wrote the signature and shoot them. Then rewrite their code.
    Actually, before you shoot them, ask them what they were trying to achieve that
    is different from my first suggestion!
    >
    As I said, I didn't choose this method header and I'm completely agree
    with your suggestion, the following method header will do the job very well
    protected abstract KeySpec engineGetKeySpec (Key key, KeySpec key_spec)
    throws InvalidKeySpecException and personally I don't see any interest in using a generic bounded parameter T
    in this method header definition.
    Once agin, thanks a lot for the answers.

  • SaveAs() method doesn't work for PDF file

    I used the script below to generate a PDF file. When I ran it, no error occurred but no PDF was generated either
    var pdf = new File("E:\\STWWEB1\\CDLG_ILL\\temp\\jpeg\\640\\1.pdf");
    docRef.saveAs(pdf);
    Does anybody know what's wrong?

    PDF needs to have a new instance of the PDFSaveOptions created. Look at the JS Reference
    PDFSaveOptions
    Options for saving a document as an Adobe PDF file, used with the saveAs method. All properties are optional.
    Saving to PDF format
    // Saves the current document as PDF to dest with specified options
    // dest contains the full path and file name to save to
    function saveFileToPDF (dest) {
    var doc = app.activeDocument;
    if ( app.documents.length > 0 ) {
    var saveName = new File ( dest );
    saveOpts = new PDFSaveOptions();
    saveOpts.compatibility = PDFCompatibility.ACROBAT5;
    saveOpts.generateThumbnails = true;
    saveOpts.preserveEditability = true;
    doc.saveAs( saveName, saveOpts );

  • Where can I find the detail document about certain method of a class?????

    Moved to correct forum by moderator
    Hi everyone,
    where can I find the detail document about certain method of a class?????
    e.g.  the class CL_GUI_ALV_GRID , when I was going through the class and looking
    at the methods, sometimes the method description is just like the method name,
    and I cannot know what the method does. 
      so, I am wondering  where I can find the detail information about the class???
    Edited by: Matt on Dec 4, 2008 11:55 AM

    Hi,
    Most of the times the SAP itself provides the documentaion of the CLASS. when you click on the METHOD name the METHOD DOCUMENTATION button you can see on the application tool bar.
    more over the names of the methods suggest what it is going to do.
    SET_ATTRIBUTE( sets the attribute)
    GET_ATTRIBUTE( gets the attribute value that is provided to the method)
    GET_CHILDNODE
    BIND_TABLE
    etc
    like this
    regards
    Ramchander Rao.K

  • About calling method with arguments

    Hi,
    I have a problem about calling method using reflection. my method is like follows:
    public myMethod(Integer var1, MyObject mobj) {
    I've tried to call the method using the following code,
    Class[] parameterTypes = new Class[] {Integer.class, MyObject.class};
    Object[] arguments = new Object[] {new Integer(2), mobj};
    Method met=cl.getMethod("myMethod", parameterTypes);
    But the in the last line NoSuchMethodException is thrown.
    How can I send the reference of MyObject to myMethod()?
    Thanx
    rony

    Should work ok:
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    public class Test {
         static class MyObject {}
         public static void main(String[] args) throws Exception {
              Class c = Test.class;
              Class[] parameterTypes = new Class[] {Integer.class, MyObject.class};                              
              try {
                   Object[] arguments = new Object[] {new Integer(2), new MyObject()};
                   Method met = c.getMethod("myMethod", parameterTypes);
                   met.invoke(new Test(), arguments);
              } catch (NoSuchMethodException e) {
                   System.out.println(e);
              } catch (IllegalAccessException e) {
                     System.out.println(e);
              } catch (InvocationTargetException e) {
                   System.out.println(e);
         public void myMethod(Integer var1, MyObject mobj) {
              System.out.println("myMethod");
    }

  • Which of the following are true about abstract methods in EJB 2.0

    Hi guys I'm beginner to EJB and i got some unanswered questions.
    Can any one of you please.. give answers?
    Thanks if you do...
    Which of the following are true about abstract methods in EJB 2.0
    CMP?
    Choose all correct answers:
    1. Abstract accessor methods should not be exposed in the EJB
    component's interface
    2.Abstract accessor/mutator methods are used to access and modify
    persistent state and relationship information for entity objects
    3.Abstract Accessor/Mutator methods do not throw exceptions
    4.The EJB developer must implement the Accessor/Mutator methods
    5.Abstract accessor methods may or may not be exposed in the EJB
    component's interface
    2.Which ONE of the following is true?
    Choose the best answer:
    1.Local interfaces cannot have a relationship with other Entity
    components
    2.Local interfaces cannot be used for Stateless Session EJB
    3.Local interfaces can be a part of Object's persistent state
    4.Local interfaces have the same functionality as that of a
    stateless Session EJB
    3.Which of the following describe the <cmr-field> in a EJB 2.0
    descriptor?
    Choose all correct answers:
    1.A Local interface/Entity can be a value of a <cmr-field>
    2.There is no <cmr-field> in EJB 2.0 descriptor
    3.It is used to represent one meaningful association between any
    pair of Entity EJBs, based on the business logic of the Application
    4.It provides a particular mapping from an object model to a
    relational database schema
    5.It allows the Local Entity interfaces to participate in
    relationships
    4.Which of the following are the advantages of using Local interfaces
    instead of dependent value classes?
    Choose all correct answers:
    1.Local Entity Interfaces can participate in Relationships
    2.The life cycle of Local Entity Interfaces is managed by EJB
    container, intelligently
    3.Local Entity Interfaces can be used in EJB QL Queries
    4.Local Entity Interfaces can be a part of the <cmp-field> but not
    <cmr-field>
    5.Which of the following are true about Local interfaces
    1.A local interface must be located in the same JVM to which the EJB
    component is deployed
    2.Local calls involve pass-by-reference.
    3.The objects that are passed as parameters in local interface
    method calls must be serializable.
    4.In general, the references that are passed across the local
    interface cannot be used outside of the immediate call chain and must
    never be stored as part of the state of another enterprise bean.
    6.Which of the following specifies the correct way for a client
    to access a Message driven Bean?
    Choose the best answer:
    1. via a Remote interface
    2. via Home interface
    3. Message driven bean can be accessed directly by the client
    4. both 1 & 2
    5. none of the above
    ------------------------------------------------------------------------7.Which of the following statements are true about message-driven
    bean Clients?
    ------------------------------------------------------------------------Choose all correct answers:
    They can create Queue and QueueConnectionFactory objects
    They can create Topic and TopicConnectionFactory objects
    They can lookup the JNDI server and obtain the references for
    Queue and Topic and their connection Factories
    Only 1 and 2 above

    Hi guys I'm beginner to EJB and i got some unanswered
    questions.
    Can any one of you please.. give answers?
    Thanks if you do...
    Which of the following are true about abstract methods
    in EJB 2.0
    CMP?
    Choose all correct answers:
    1. Abstract accessor methods should not be exposed
    d in the EJB
    component's interfacefalse
    2.Abstract accessor/mutator methods are used to
    access and modify
    persistent state and relationship information for
    entity objectstrue
    >
    3.Abstract Accessor/Mutator methods do not throw
    exceptionstrue
    >
    4.The EJB developer must implement the
    Accessor/Mutator methodsfalse
    5.Abstract accessor methods may or may not be exposed
    in the EJB
    component's interfacetrue
    2.Which ONE of the following is true?
    Choose the best answer:
    1.Local interfaces cannot have a relationship with
    other Entity
    componentsfalse
    2.Local interfaces cannot be used for Stateless
    Session EJBfalse
    3.Local interfaces can be a part of Object's
    persistent statefalse
    4.Local interfaces have the same functionality as
    that of a
    stateless Session EJBtrue
    3.Which of the following describe the <cmr-field> in a
    EJB 2.0
    descriptor?
    Choose all correct answers:
    1.A Local interface/Entity can be a value of a
    <cmr-field>true
    2.There is no <cmr-field> in EJB 2.0 descriptorfalse
    3.It is used to represent one meaningful association
    between any
    pair of Entity EJBs, based on the business logic of
    the Applicationtrue
    4.It provides a particular mapping from an object
    model to a
    relational database schematrue
    5.It allows the Local Entity interfaces to
    participate in
    relationshipstrue
    4.Which of the following are the advantages of using
    Local interfaces
    instead of dependent value classes?
    Choose all correct answers:
    1.Local Entity Interfaces can participate in
    Relationshipsis
    2.The life cycle of Local Entity Interfaces is
    managed by EJB
    container, intelligentlyis
    3.Local Entity Interfaces can be used in EJB QL
    Queriesnot
    4.Local Entity Interfaces can be a part of the
    <cmp-field> but not
    <cmr-field>not
    >
    >
    5.Which of the following are true about Local
    interfaces
    1.A local interface must be located in the same JVM
    M to which the EJB
    component is deployedtrue
    2.Local calls involve pass-by-reference.true
    3.The objects that are passed as parameters in local
    l interface
    method calls must be serializable.false
    4.In general, the references that are passed across
    s the local
    interface cannot be used outside of the immediate
    e call chain and must
    never be stored as part of the state of another
    r enterprise bean.true
    >
    6.Which of the following specifies the correct way for
    a client
    to access a Message driven Bean?
    Choose the best answer:
    1. via a Remote interfacefalse
    2. via Home interfacefalse
    3. Message driven bean can be accessed directly by
    the clientfalse
    4. both 1 & 2false
    5. none of the abovetrue.
    >
    ----------------7.Which of the following statements
    are true about message-driven
    bean Clients?
    ----------------Choose all correct answers:
    They can create Queue and QueueConnectionFactory
    objectsthe container can, dunno bout clients
    >
    They can create Topic and TopicConnectionFactory
    objectsthe container can, dunno bout clients
    >
    They can lookup the JNDI server and obtain the
    references for
    Queue and Topic and their connection Factories
    true
    Only 1 and 2 abovefalse
    somebody correct me if i'm wrong

  • FileReference.save() method is undefined in Adobe AIR ?

    Hi,
      I am developing  a desktop application using adobe AIR.I need to use FileReference.save() method.But an actionscript error occuring during run time which says save() method is undefined for FileReference and there is no default value.I am running the application in eclipse.Is it due to the version problem of my AIR ? Please reply.

    Hi,
       Thanks for your answer.But I am getting that type of exception while running the application from eclipse.So please suggest a solution for this.

  • Hi, I did an apple account but they didn't asked me about payment methods and now when i need something from Appstore it is written: "this apple id has not yet been used in the iTunes Store" tap reviem. I tapped review and they are asking me to introduce,

    Hi I have created an apple Id but yhey didn't asked me about paymeny methods, and know when i need something from appstore it is written: This apple Id not yet been used in the iTunes Store, tap review....but when i tap review they ask me for a credit card without giving me the opption of ''NONE''. Can you help me?

    What kinda forum is this where nobody helps!
    I am waiting since so many days after leaving a thread and till nobody helped me with a reply.
    If it's a Google PlayStore forum many hundreds of people would have replied.
    Seeking a little help and nobody bothered to give it out to you, I am really annoyed.
    Still waiting for Help!

  • BADI_LE_SHIPMENT At Save Method ..

    Hi Experts ,
    I am using At Save Method of BADI_LE_SHIPMENT .
    My requirement is , I need to fill Suppl 1 field (VTTK-ADD01), when ever user creates or changes a shipment . When i am changing the table NEW_VTTK , it's not getting saved in VTTK table .
    Please Help !!!
    Thanks .

    Hello Joe
    Are you changing the right NEW_VTTK tab (within CHANGING parameter CHA_SHIPMENTS_AT_SAVE)?
    If so you have to play around with the indicators (TRA_SAVE_CALLER).
    Regards
      Uwe

  • Misunderstanding about abstract methods

    I think my compiler just taught me something, and after reading the JLS I concluded that I had a misconception about abstract methods. However, if someone could confirm this I would feel more comfortable.
    I had defined a class structure like so:public abstract class Grandpa{
      public abstract void do();
    public abstract class Pa extends Grandpa {
      public void do(){
      // whatever
    public class Child extends Pa {
    }I got a compile error indicating that Child must implement do(). I had thought that since there was an implementation provided by Pa that Child didn't need to supply one, but I guess I was wrong. Right? :-)

    Nested where? Inside Pa? Other? Static?Inside Pa.
    It sounds like you're satisfied, but if you want to
    continue the discussion, I'll make the standard
    request. Come on, you know it, say it with me: Provide
    a small, complete, working (in that it doesn't
    compile) example that demonstrates this. :-)Yeah, that's exactly what I was working on for the bug report, but I can't get the compile error in my small example. Argh! I'll have to go back some time and build it up to match the other classes until I get the error, because I still get it consistently with the real thing. I have no idea what the key factor is, though - I've tried everything obvious and I don't have time to work through it right now.
    No prob. It's a pleasant break from arguing with UJ.
    :-)Glad I could offer you a distraction. :-) I'll post here again if I ever figure out what the deal is.

  • Bopf save method

    Hi all,
    we have scenario where we are updating multiple record in bopf tables.
    in this we are using modify and save method of transnational manager.
    if we are updating 10 records and if  5th record is getting error while saving .
    it will not update remaining records.
    and save method will have 5th record error and same error its giving for the 6th record and not updating data .
    here 6th record data is correct and it should update.
    how we should clear this eo_messages of previous record in save method.
    any idea.
    thanks.
    Kesar.

    Hello Keser,
    Since you use the transaction manager save , I assume that you are updating the records from a report or some kind of external service consumer. How do you do the update ? Do you do a mass update by building all records in the modifications table and make a single call , or do you make a separate modify call per record ?
    If the error message leads to a failed save , it would mean that the BO has a consistency group of validations configured preventing the save from failing when the BO is inconsistent ( meaning if the validation return a failed key , the BO is inconsistent and shall not be saved ) resulting in the entire transaction failing.
    From a consumer perspective , the BO service provider provides the message to the service consumer indicating what is wrong , subduing/ignoring/removing that message will not result in the whole transaction proceeding to a successful save.
    You can do one of the two things here.
    1. The bad way - create one transaction per record, so only the transaction with the inconsistent record fails , the others are successful. This is not a recommended approach , you should always make use of mass enablement wherever possible.
    2. React to the error message from the first failed transaction , correct the inconsistent record and attempt the modification again. This method might require some user interaction , and goes against the idea of a fire and forget report.
    Thanks,
    Indranil.

  • SaveAs Method Of Workbook Class Failed Upon fIntersectionCheckEx

    We are in the process of migrating from FDM and HFM 9.3.1 to 11.1.2.1. Because of the performance issues that we previously experienced with FDM's MultiLoad functionality, we've been using UD5 and UD6 and an adapter customization to load Year and Period. To accommodate the "extra" dimensions, we're also using custom Event scripts, check reports, etc.. The built-in intersection check is disabled. The AftValidate script contains our custom intersection check and follows below. When the Validate phase is executed from the web client, the following error appears in the log:
    ** Begin fdmFM11XG5E Runtime Error Log Entry [2011-10-13-12:03:15] **
    Error:
    Code............1004
    Description.....SaveAs method of Workbook class failed
    Procedure.......clsHPDataAccess.fIntersectionCheckEx
    Component.......C:\FDMData\fdm-hfm-adapter-V25481-01\FinancialDataManagement\FM11X-G5-E_1005\AdapterComponents\fdmFM11xG5E\fdmFM11XG5E.dll
    Version.........145
    Identification:
    User............larryr
    Computer Name...SVRHYPFDMV103
    FINANCIAL MANAGEMENT Connection:
    App Name........
    Cluster Name....
    Domain............
    Connect Status.... Connection Open
    ** Begin FDM Runtime Error Log Entry [2011-10-13 12:03:15] **
    ERROR:
    Code............................................. -2146233088
    Description...................................... SaveAs method of Workbook class failed
    At Line: 59
    Procedure........................................ clsEventHandler.PobjAPI_AftValidate
    Component........................................ upsWObjEventHandlerDM
    Version.......................................... 1112
    Thread........................................... 4828
    IDENTIFICATION:
    User............................................. larryr
    Computer Name.................................... SVRHYPFDMV103
    App Name......................................... SAPHFM
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... svrsql105
    Database Name.................................... SAPHFM
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... AHEL_F1
    Location ID...................................... 752
    Location Seg..................................... 6
    Category......................................... FctAug
    Category ID...................................... 16
    Period........................................... M12 - FY12
    Period ID........................................ 4/30/2012
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    ** Begin FDM Runtime Error Log Entry [2011-10-13 12:03:15] **
    ERROR:
    Code............................................. 440
    Description...................................... Automation error
    Procedure........................................ clsValidationMgr.fValidate
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 4828
    IDENTIFICATION:
    User............................................. larryr
    Computer Name.................................... SVRHYPFDMV103
    App Name......................................... SAPHFM
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... SQLOLEDB
    Data Server...................................... svrsql105
    Database Name.................................... SAPHFM
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... AHEL_F1
    Location ID...................................... 752
    Location Seg..................................... 6
    Category......................................... FctAug
    Category ID...................................... 16
    Period........................................... M12 - FY12
    Period ID........................................ 4/30/2012
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Custom intersection check via AftValidate. Line 59 is fIntersectionCheckEx:
    Sub AftValidate(strLoc, strCat, strPer, lngProcState)
    'UpStream TB EVENT Script
    'Purpose:   Perform custom intersection check - customized for multiple periods
    Dim strTableName, strSQL'               Query variables
    Dim strPerYear, strPerMonth'          Target HFM Year & Month
    Dim strCatKey, strLocKey'               ID of POV Category & Location
    Dim strErr, strHTMFile'                    Error information
    Dim objHWReturn'                         Return object for intersection validation
    Dim objPeriod'                              Period object
    Dim fso'                                   File system object
    Dim rs'                                        Recordset containing unique HFM Target intersections
    Dim vaData'                                   Array containing unique HFM Target intersections
    ' Initialize Block Processor For HFM connection
    Dim BlOCKPROC
    Set BlOCKPROC = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
    BlOCKPROC.Initialize API, SCRIPTENG
    ' Call the Connect Action for the active integration block
    Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = BlOCKPROC.ActConnect("CheckDims")
    If API.IntBlockMgr.IntegrationMgr.PobjIntegrate.intResult Then' Connection is open
         'Get Target information
         strLocKey = CStr(RES.PlngLocKey)
         strPerKey = CStr(RES.PdtePerKey)
         strCatKey = CStr(RES.PlngCatKey)
         Set objPeriod = API.POVMgr.fPeriodKey(strPer)
         strPerYear = objPeriod.strTargetYear
         strPerMonth = objPeriod.strTarget
         Set objPeriod = Nothing
         strTableName = "tDataSeg" & API.POVMgr.fGetLocationSegment(strLocKey)' Get tDataSeg number for location
         strBaseName = strLoc & "_" & strCat & "_" & strPerMonth & "_" & strPerYear
         strLogsDir = DW.Connection.PstrDirOutbox & "\Logs\"
         strFile = strLogsDir & strBaseName & ".fmv"
         ' Create the SQL to pull the validation records
         ' Do not Validate the Keystone Custom2 records since their "parent" Classic Custom2 records are validated
         strSQL = "SELECT DISTINCT EntityX, PartitionKey, CatKey, PeriodKey, DataView, AccountX, ICPX, UD1X, UD2X, UD3X, UD4X," & _
                                         " '' AS UD5X, '' AS UD6X, '' AS UD7X, '' AS UD8X, '' AS UD9X, '' AS UD10X, '' AS UD11X," & _
                                       " '' AS UD12X, '' AS UD13X, '' AS UD14X, '' AS UD15X, '' AS UD16X, '' AS UD17X, '' AS UD18X," & _
                                       " '' AS UD19X, '' AS UD20X, '' AS Amt " & _
                    "FROM " &strTableName& " WITH (NOLOCK) " & _
                    "WHERE CatKey=" &strCatKey& " AND PeriodKey='" &strPerKey& "' AND PartitionKey=" &strLocKey
         'Validate all records in the result set
         Set rs = DW.DataAccess.farsFireHose(strSQL, False)
         With rs
              If Not .EOF Then' Create the array to pass to intersection checking
                   vaData = .GetRows(.RecordCount)
                   Set objHWReturn = API.IntBlockMgr.IntegrationMgr.PobjIntegrate.varCon.fIntersectionCheckEx(vaData, CStr(strCat), CStr(strPerMonth), CStr(strPerYear), "YTD", "<Entity Currency>", CStr(strFile), "FM Account", "FM Entity", "ICP", "Custom1", "Custom2", "Custom3", "Custom4", 15, 9, 2)
                   If objHWReturn.PblnIsErr Then
                        RES.PstrActionValue = objHWReturn.PstrErrFile
                        RES.PlngActionType = 4' Display HTML file on web client
                        API.MaintenanceMgr.mProcessLog strLoc, strCat, strPer, 2, False, "Custom Intersection Validation Error:  Error creating validation array", Now()
                   Else' Delete the html header file for the error free validation
                        strHTMFile = strLogsDir & strBaseName & ".htm"
                        Set fso = CreateObject("Scripting.FileSystemObject")
                        If fso.FileExists(strHTMFile) Then fso.DeleteFile strHTMFile, True
                        Set fso = Nothing
                   End If
                   Set objHWReturn = Nothing
              Else
                   strErr = "AftValidate Event Script error:  No data for intersection check" & vbCrLf
                   RES.PstrActionValue = strErr & "You must re-run the Import before running the Validate again"
                   RES.PlngActionType = 2' Display the error string
              End If
              .Close
         End With
         Set rs = Nothing
    End If
    'Destroy the remaining objects
    Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = Nothing
    Set BlOCKPROC = Nothing
    End Sub

    Thanks, Tony. I no longer get the "SaveAs method of Workbook class failed" error. Now, when there are intersection check errors, instead of the intersection check report automatically opening in a new tab, I get a "File Download" message box with Open and Save buttons. If I choose Open, I get the "404 - File or directory not found" error. If I choose Save and save the file to a local path, I never get the option to open the file and the "Processing. Please wait..." message runs forever.
    Per the FDM ReadMe, I've installed MSXML 3.0 SP7 on both the FDM server and client machines. I've set security to the lowest setting in IE 7.

  • PDF Export Problems @ Printers - Save Methods?

    I am working on a brochure that is mostly white text on black, with a few full colour pictures. There are also some manufacturer's logos that I inverted in PS to make them white on black too, all in CMYK mode in PS. Though there were still black boxes around the logo's they were going on the black background so I though I would be safe... I tried the "instant alpha" tool in Pages but the pictures are too low-res for this method to work effectively (it rounded all the points and made the images).
    For the first proof I used the file>export>PDF>best method, and all looked good on my computer but the colours that were produced from the print shop (The UPS Store) looked appalling. Contrast was great on all the white on black text, but the colours were completely off. (however, there were no black boxes around the logos I was worried about, so that was a plus)
    I did a fairly thorough web search of other print methods, and came across the file>print>pdf>save as postscript method that involved using Adobe Distiller to create the PDF rather than Pages. After getting a proof back from the print shop today I was pleased to see that the colours now appeared accurate on the proof but the black on black box problem around the logos I used now appeared and looked awful.
    How do I fix? I'm frustrated and this matter is very time sensitive as there is supposed to be over 10,000 copies of this brochure printed by the weekend. Thanks in advance. : )

    a brochure that is mostly white text on black, with a few full colour pictures. There are also some manufacturer's logos that I inverted to make them white on black too, all in CMYK mode in PS ... the colours were completely off.
    The objects in the page are not colour managed coherently and correctly from the start. For instance, if you have Photoshop set up to disregard embedded ICC profiles, it will assign a default ICC profile for the colourant model of the object (a type PRTR Printer profile with data space CMYK for a CMYK colourant model object, and so forth), but it will not save out that object with the profile it assigned. This way you get what in the graphics model becomes 'deviceColor' meaning that the colourants are rendered by the numbers as there is no definition of the colours you intend them to form in the printing condition.
    Classical case is of a graphic designer who misconfigures or disables colour management in a page layout application, places deviceColor objects, generates PostScript or PDF, and wonders why the gray balance, the tonal range, the highlight detail, the shadow detail - is different in each and every tonal image in the page. Always, always, always unify the colour management for the page. Capture and correct in a large gamut RGB working space. Place three component RGB with correctly embedded source ICC RGB profile in pagination, and convert into one and only one destination ICC CMYK profile for the intended printing condition.
    The way you are working would produce similar problems in QuarkXPress and InDesign - it would not matter what make and model of page layout application you picked.
    Hope this helps,
    Henrik Holmegaard

  • Important question to Steve about passivateState() method

    <br> <font size="2">Hello Steve, <br><br>I want to store information about application user in oracle.jbo.Session hastable. It's stored as pair KEY --&gt; VALUE. To be sure that these informations will be accessible after passivation AM I have overreaded passivateState() method as below: <br><br></font><font style="color: rgb(0, 0, 255);" size="2"><span style="font-family: Courier New;">public void passivateState(Document doc, Element parent){  <br>    Node nodeUserData = doc.createElement("USERDATA");<br>    Hashtable hs = getDBTransaction().getSession().getUserData();<br><br>    if(hs != null){ <br><br>        Set mapKeys = hs.keySet(); <br>        Iterator hsKeysIter = mapKeys.iterator(); <br>        while(hsKeysIter.hasNext()){<br>     <br>            String key = (String)hsKeysIter.next(); <br>            Node keyNode = doc.createElement(key);<br>            <span style="color: rgb(255, 0, 0);">keyNode.setTextContent(hs.get(key));</span><br>            <span style="color: rgb(255, 0, 0);"><span style="color: rgb(0, 0, 255);">nodeUserData.appendChild(keyNode);</span> </span><br>        } <br>    } <br>    parent.appendChild(nodeUserData); <br>} <br><br></span></font><font size="3"><font size="2">I can't compile this because i get an following error in red line: <span style="color: rgb(255, 0, 0);">Error(122,25): method setTextContent(java.lang.Object) not found in interface org.w3c.dom.Node.</span> It's very strange because <span style="font-weight: bold;">org.w3c.dom.Node</span> implements <span style="font-weight: bold;">setTextContent()</span> method. I have tried this solutions creating standalone xml file and everything works. <span style="font-weight: bold;">It doesn't work inside passivateState() method.</span> Is this another way to save to ADF xml document pair KEY --&gt; VALUE. It's important because I could retrieve user data after activation AM overreading activateState() method and set it into hashtable also as pair KEY --&gt; VALUE. </font><br><br><font size="2">Regards <br>Kuba</font></font>

    Please see section "28.5 Managing Custom User Specific Information" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this.
    Rather than trying to set the text content of a DOM element, you create an element, create a text node, then append the text node as a child of the element.

  • Basic Cryptography Question about Cryptograpic Methodes

    Hi
    I have some text data that i need to encrypt and save to a file (kind of a licence file). Than that file is distributed with the software. Upon runtime the software should be able to read in that crypted data file and decrypt it so it can read the information for use.
    I know how this is done using DES for example. But with DES i have to distribute the DES Key with the software, so everbody could use that key to create new encrypted data files.
    What i'm looking for is something like a key i can use to encrypt the data and another key that can only be used to decrypt the data but not for encrypting it, so i can destribute that key with the software with out the danger that anybody can use that key to create new data (licence) files.
    Is there a cryptography mehtode to do this? If yes, is that methode available in JCE?
    I'm a newbie to crypthography, i just read little about the basic concepts, so i'm very thankful about your help.

    I'm not sure whether i understand what you mean. I don't see a reason why i have to exchange any kind of data with the client.
    i thought i package the public key and the encrypted data file with the software i distribute. Than, upon runtime the software loads the public key (as a serialized object) and the encrypted data file and decryptes the data file.
    But this just fits my needs, if the public key may just be used to decrypt the crypted data file and not for encryption. I'm a little bit confused about this point, because i read a lot in the past hours about this topic and the statement was, that private keys are used to decrypt and public keys are used to encrypt. So what i need is the opposite. And i couldn't find such an algorithm until know.
    Maybe you can help me to see that a little bit clearer?
    Thanks a lot for your help!

Maybe you are looking for