Formatting OLE object to variable file paths.

I am currently using the trial version (2008) of Crystal Reports...at least for the next 7 1/2 days!  I have worked through all my problems/questions except one.  I am trying to insert a SolidWorks drawing document as an OLE object (linked) & the file path for the SW drawing needs to vary by the part name.  I placed a column in my Excel worksheet titled "Drawing File" & have tried several different formats to point the OLE to the correct file.  Thus far I am successful only in showing the original file the OLE object was created with.  The file path is Z:
Jesse\Crystal Reports Tests\9-15-2009\FILENAME.slddrw
I've tried adding hyperlinks to my Excel document, & I've typed out the address to the letter, but I just can't seem to get it to work.  Can anyone offer a solution here?

I got the format right from the start.  Crystal '08 simply would not link to a SolidWorks file as it will a JPEG file (or any other picture file).  So be warned...if you want a SolidWorks drawing to show on your Crystal Report, you MUST save it as a picture file, which as SolidWorks users know, puts EXTREME limitations on a super product since your drawings & models are dynamically related.

Similar Messages

  • Get (variable) file path and name in a text element

    How do you get the (variable) file path and name in a text element (label) in LCD? If you save the PDF and afterwards relocate it, it should update the values. Is that actually possible?

    Does anyone have any advice on this issue?
    Thanks in advance,
    Zack H.

  • How to call a variable file path in javascript

    Hi,
    My objective is to capture a file path on mac and windows. However, this file path gets changed with various users.
    For example the path is:
    c:\user\username\AppData\Local\Temp\myfolder------> this is for windows machine
    /users/username/Library/Application Support/tempfolder/Temporary Files/-------> this is for mac machine
    As you can see, the path will be same for all the machines. Only the difference will be in searching the user and username at the start of file path. Rest folders will remain same on all the machines.
    Is there any grep pattern through which I can call this complete path in a variable for all the users.
    Any help will be appreciated.
    Regards,
    Abhi

    Hi,
    You are able to check OS:
    var currOS = $.os;
    regarding to value of this string you can switch to various paths
    Jarek

  • Variable file path

    In File curfile1, I am fixing my path and sending that path in ReadFile. But I do not want to fix my path, instead whatever path I select while using my user interface should be my curfile1. My code below with fixed path is working fine:
    private void fileButActionPerformed(java.awt.event.ActionEvent evt)
         JFileChooser chooser=new JFileChooser();
         chooser.setCurrentDirectory(curfile1);
         chooser.setMultiSelectionEnabled(true);
         int state=chooser.showOpenDialog(null);
         File[] files=chooser.getSelectedFiles();
         String[] filenames=getFilenames(files);
         for(int i=0;i<filenames.length;i++)
              try
                       ReadFile(curfile1,filenames);
              catch (IOException ex)
                   ex.printStackTrace();
    File curfile1=new File("D:\\temp\\");
    Could anyone please tell me what updations I need to make in my code.

    In my user interface when I select files from
    any path other than D:\\temp\\, it's still
    trying to locate those files in the path
    D:\\temp\\, because I have mentioned as
    File curfile1=new File(D:\\temp\\);. So please
    tell me how to specify to pick up files from any
    path. I do not want to fix my path.Why aren't you just removing new File("D:\\temp\\") in that case?
    Kaj

  • Variable file paths

    I'm making an application to be distributed to people who will probably running a variety of operating systems, but I've encountered a slight problem:
    I want the installer program to install to a user-defined directory, but I don't know how to have the main program access the path to that directory. Is there some sort of universal resource my installer can write to/my main program can access to obtain the correct path?
    Thanks in advance

    My program has to know where the files it needs are located. I currently have it hardcoded, but obviously that would require me to re-compile for every user. I want the installer to get the desired directory from the user, write that to some sort of system resource, and have the main program read from that resource to find the directory.
    Plus, I can't use command line arguments because a) I'm using a JAR and b) most users don't know what a command line is.

  • Memory problem if OLE-object references to WMF files

    Hi there,
    I have a report with an OLE object containing WMFs.
    The graphic files are variable and their name is loaded from the database during runtime (path + filename).
    Running the report leads to 185 pages, each one containing a different WMF.
    If I preview the report in CR, everything looks fine.
    If I print the report, the OLE object / graphic is left empty....
    If I export the report to PDF (as an example) I get the error message 'memory full'. Reducing the data set to ~50, the PDF is created. But the pictures get resized (much bigger) and only parts are visible.
    The machine I'm using doesn't have any memory problems.
    The WM files are only 3 to 12 KB each.
    If I convert the WMFs to JPG and use these within the report it works...
    Problem with this: a loss of quality (it is necessary to stretch the pictures to certain size)
    Thanks in advance for any ideas!
    Susanne
    I'm using CR 2008 SP 3 on Windows 2003 Server

    Format the pictures outside of CR for best results.

  • Programatically set ole object image path

    Hi to all,
    I'm using Visual Studio 2005, Asp.net 2.0-C# and CR 11 Sp2.
    In my rpt file i added one ole object as bitmap i want to pass the data(image path) to this bitmap by programtically how to do this? Experts please help me

    Hello, Winseelan;
    If you are using Crystal Reports XI R2 (11.5) SP2 or later you can do this programatically using the 'Graphic Location' conditional formula.
    To do this, perform the following steps:
    1. Open the report in the Crystal Reports Designer.
    2. Create a formula called "Location" that contains a temporary path string to an image file. For example, "C:\Images\Image1.jpg".
    3. Right-click the image on the report and click 'Format Graphic'. The 'Format Editor' dialog box appears.
    4. In the 'Picture' tab, click the 'Graphic Location' conditional formula button. The Format Formula Editor appears.
    5. Call the "Location" formula from this conditional formula.
    6. Save changes to the report.
    7. In your application, you can now change the location of the image file at run time, by modifying the text in the "Location" formula programmatically using the following code:
    myReport.DataDefinition.FormulaFields.Item("Location").Text = "C:\Images\Image2.jpg"
    You can now view the image successfully when previewing your report in the application.
    Elaine

  • Ole object missing on pdf file

    i have long raw field in database. i am saving excel workbook in it through ole container. it displays well on report but when i generate pdf from report it miss ole field and show that portion of report blank. It exports ole object in postscript format (.eps) but i dont now any software which can open this file and show result on screen.
    i am using developer 6i with oracle 9i database in client-server environment.
    thanks

    Hello,
    Take a look to the thread :
    Re: Image in Reports
    eps files are "Encapsulated PostScript", for more details :
    http://www.tailrecursive.org/postscript/eps.html
    for example
    Regards

  • The Picture of OLE object  in the report  can't be printed, and how to sovle dynamic OLE object based on path

    <p>Hi, everybody,</p><p>  I have a problem which the picture in the report can&#39;t be printed.</p><p>I want to display some pictures  in the reports and print them.So I insert the picture as OLE object, select the graph format and set graph location fomular with the path of the picture which is stored in the local machine. I run the system and generate the report,  the picture is displayed correctly in the report, but when i print the report using ie&#39;s tool, the picture is gone and replaced with a little red mark. </p><p>I want to use the new feature of dynamic graph location about  the  crystal report xi version, but I don&#39;t know where I should put the picture into on the web server and what the path is . Because my web server is installed in the another machine.</p><p>I check the view source of html report and  find that the system searches the picture under  the crystalreportviewer11 folder on the web server.</p>

    Need to give the web server access to the folder

  • Search c:\ drive and return file path for winword.exe and save as variable

    Hi all, here is what I'm trying to do;
    1. Search C:\ drive for winword.exe
    2. take the file path and save it as a variable.
    3. Then based on the path value, use the switch statement to run "some command" 
    Essentially I'm trying to find what the file path for winword.exe is, then run a command to modify the registry.  I already have the script that will modify the registry like I want but the problem it, the path is hard coded in the script, I want to
    now look for all versions of word and set the right file path so I can make the right registry changes.

    This should get you started:
    http://ss64.com/ps/get-childitem.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • SSIS - Loop through files from a file path based on the value in the variable

    Experts,
    I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
    For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
    the files to the "\\....\Src\Product\Archive" folder.
    Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
    folder.
    Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.

    Yes
    1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
    like
    (@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
    similary archive
    (@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to remove file path location listings from photos and objects in Acrobat Pro 9.0 PDF?

    After converting a windows-based Powerpoint 2007 presentation to an Acrobat Pro 9.0 PDF, the file path location of all photos and objects are shown in a dialogue box when the cursor is moved over the image as seen in this screenshot below. How can I stop this from happening and remove this feature on my pdf documents? 

    I saw that referenced on a forum, but it does not seem to address the issue I am having.
    As per Adobe Acrobat X Standard * What’s new, the equivalent to the "Tools > Protection > Remove Hidden Information" utility found in Acrobat X Standard is the same as the "Document > Examine Document" feature in Acrobat Pro 9.0. Those tools seem to cover meta data, book marks, hidden text, and deleted or cropped content, but not the file path listings that appear on images and objects converted from Powerpoint presentations and other MS Office programs.
    I have reviewed the settings used while creating a pdf, and have also tried the “Advanced > Preflight tool”, but could not find anything to apply to the issue at hand.
    Thus, this issue has not been resolved, but seems like it should be an easy fix that anyone who publishes pdf documents would want to use to publish clean, professional documents without anyone seeing the file path location of every object and image shown in the document on their hard drive.

  • Dynamic OLE object not displaying proper file

    We are using CR IX R2. I have a report that I would like to attach a pdf to. This pdf will be different depending on the selection of data from the rest of the report. The file location is always the same but again the name of the file will vary.
    The location and name of the file are listed in one field of a table. Is there a way to do this. When I edit the OLE object and select the field where  the file resides it only shows the original document that I choose.
    At this point I am testing it in a blank report before I create the subreport to add it to our existing report.
    Any suggestions?

    What happens if you try this link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0fbebaf-07e0-2c10-ad9a-d45810ae7109&overridelayout=true
    It should open the PDF Browser viewer. If it doesn't then you likely need to add PDF support to your browser. Or configure PDF or install the latest version. Could be a permission issue also.
    Thank you
    Don

  • How does Rights Managament handle office files containing OLE objects?

    I tried to encrypt those office flies that contain multiple OLE objects but it failed. I wondered  if those OLE objects caused this problem so I removed them out of files. Then the encryption process worked fine again. However I'm not sure OLE object is the root cause.  Is anyone know  the process how rights management handle these kind of office files?
    Can Rights Managamenet skip the OLE objects and still make those offce files encrypted successfully?
    Thanks.

    The Temp Files were in my case at :MobileSync/backup
    everytime the restore failes, itunes creates a folder named with the same name adding the crash date and time
    in my case for the backup folder name "1d950ba8cfaab2fa172120ae6212c788ed9b07c"
    itunes creates folder named:                "1d950ba8cfaab2fa172120ae6212c788ed9b07c-20131229-004508"
    which you have to delete to restore your disk space.
    regards Tim

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

Maybe you are looking for

  • Visual Studio 2012 Toolbox - Choose Items Dialog will not display

    Hi When i click on a new or exisiting tab in the toolbox and select 'choose items' the dialog box does not display this is either from the main menu or context menu. I've reset the toolbox, deleted the .tbd files, run devenv in safemode, reset settin

  • Upgrading weblogic 8.1 to jdk1.5.0_04

    Has anyone performed this upgrade? Are there any known issues with this upgrade?

  • SQL Loader Control file WHEN clause

    LOAD DATA REPLACE INTO TABLE IDL_Investments WHEN average_balance < '100.00' FIELDS TERMINATED BY X'9' TRAILING NULLCOLS Borrower_Id, Account_No, customer_No, cptype_id "GETID(:cptype_id)", customer_name, average_balance, CP_GroupName, CP_type, Accou

  • About executing a executable program in background

    Hi to all I created a report program having one variant and downloading its content in a flat file using ws_download function. When I am going to download this in background , i am not getting the result. I am fulfulling all requirement to schedule a

  • AE won't reset, light is steady yellow, flashes green every so often

    My AE won't reset... I've tried soft, hard, and factory default resets. All it does is come back on with a steady yellow light that eventually turns green for a second, then goes back to steady yellow forever. If i let it sit unplugged for a long tim