Dynamic OLE

Post Author: aaron2000
CA Forum: .NET
This should be an easy question to answer. I'm new to cr so if I use bad terminology please correct me.
I have an ole object linked to a word file that shows in my report. I want to change the location of the embedded file ie re-embed the file at runtime.
Basically, I want to choose what word file I show in the ole object at runtime. I can't find any code for this. Thanks.

Post Author: ROk
CA Forum: .NET
Hi i'm searching for the solution of these problem about one week and i'm not found any.I found this two options: 1.In MS access you can do this in insert-> more controls->rtf2 control(rich text format) Add rtf2 control to report design and then in code you can set the source of rtf something like theese rtf2control.object.text=source. But i dont know if is this possible in crystal report because i cannot find how to add rtf2 control to design and use it in .net Code 2.I was hoping that there will be somekind of properties of ole object that you can set path but i found nothinh.I just found out that when you insert ole object(ms word) in visual studio 2005, that it is somehow convert to picture but as set before don't know how to set different location of this.So here i'm little confused I'm searching for solution of this very long time so PLEASE HELP AND ANSWER SOMEHOWE!!!! ANYONETNX

Similar Messages

  • 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

  • Dynamic OLE - Field Data - Path Format??

    If I want to dynamically link my OLE to a variable-specific path, what is the correct format in Excel?
    For instance, I've used
    Z:\Jesse\Crystal Reports Tests\9-15-2009\FILENAME.slddrw to link to a SolidWorks drawing file...the original OLE image is correct, but I can't get the "dynamic" part to link correctly to show different files for different variables. HELP! PLEASE!

    Not a Database issue. Moving to Report Design forum

  • Dynamic OLE DB Connections

    Greetings!
    I have variable in SSIS package and multiple databases and i want to make connections dynamically in SSIS - OLE DB connection. Can you please let me know how to do that ?
    Have a great day!!!

    Addition information regarding this topic: please also a look at the following article regarding dynamic connections in SSIS:
    http://anothersqlgeek.wordpress.com/2013/03/28/ssis-dynamic-connections-part-1/
    If you have any feedback on our support, please click
    here.
    Regards, 
    Elvis Long
    TechNet Community Support

  • 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

  • Dynamically change the db and server in execute sql task

    Pkg 2: Moves data from B_STG (Staging DB) to B_Det_STG (Staging DB)  ---- option1
    Pkg 3: Moves data from B_STG (Staging DB) to B_Det (PC DB)   ---- option2
    This part is duplicating in both the packages
    So they want me to merge both of them into in execute sql task and dynamically change between option1 and option2 depending on a pkg level variable.
    So, I create a pkg level variable called ExecutionVariable: 'ANALYSIS' or 'LOADING'
    If 'ANALYSIS' it needs to do option1 else option2.
    So, I ma trying to create a dynamic connection string in execute sql task.
    I change the connection property in execute sql task editor dynamically my giving the expression: @[User::ExecutionVariable] == "ANALYSIS"?  @[User::STAGINGDBConnectionString] :  @[User::PCDBConnectionString]
    which evaluates to : Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb
    But when I run the sql task, its giving me an error: 
    ERROR:
    TITLE: Microsoft Visual Studio
    Nonfatal errors occurred while saving the package:
    Error at PC_DataLoad: The connection "Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Error at PC_DataLoad: The connection "Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Can u please help me.

    Hi ,
    Don't try to make the "Execute Sql" task as dynamic.
    Try to make OLEDB connection Manager as "Dynamic".
    Steps:
    1. Create OLE DB Connection pointing to any database then set expression to connection string variables like below.
    Provider=SQLNCLI10.1;Integrated Security=SSPI;Initial Catalog=YourDBname;Data Source=YourServerName.
    2. Make Delayed Validation property to "True".
    3. Set the created dynamic OLE DB connection to your Execute SQL task.
    4. Change the connection string variable accordingly before running the "Execute SQL" task.
    Hope it will help you.
    Regards,
    Nandhu

  • Insert OLE w formula for document name

    Post Author: joemoceri
    CA Forum: General
    Hi, I'm still stuck using CR 8.5 and need to add a Word Doc to a report.  I can do it as an "insert OLE object". However, I won't be using the same doc file all the time.  The doc file name will be changing each time the report is run, so i need to add it as a formula.
    I can't remember how to do it.  I did it once in CR 7 and I don't have access to it.
    How do i add a Word Doc into a report using a formula to specify the file name?

    Post Author: joemoceri
    CA Forum: General
    OK.  I figured out how i did it in the past...
    Microsoft Access - I added an ODBC link to the report to an external Access table with OLE objects in it.
    Then on the main report i added the ACCES table via ODBC to get the ole object to appear on the report. 
    This allows a report to have a dynamic, OLE object to appear based on data in the report.

  • Printing a "dynamic static OLE" but can't get it to print on second page.

    Hello and thanks in advance for any help on this.
    Scenario:   Have Crystall XI  and am printing a "dynamic static OLE". 
       I opened up the crystal report and dropped a "non-availabe image" on the page.  I then right-clicked on the image and
    went to 'Format Graphic" .. then to 'Graphic Location" and created the formula with the path to my image.  A .xml file was then created with the pathing information in the .xml fields.  The image it is supposed to print will be dynamically created thru another process, thus the image size can and will vary.  This all works great with two exceptions:
    1)  If the actual image is smaller than the template or 'non-available' image I placed on the page it will scale it up to
         that size stretching and distorting the image.
          Question:
               Is there any way to tell the crystal report to not scale this smaller image up and to just leave it as it is?
    2)  If the actual image is larger than one page it will try to push it all on to this one page and will even discard what
         it can't force onto page making the image shrunken and distorted.
           Question:
              Is there a way to have a oversized image actually break to the second or third page?
      OR:
           Question:
              Is once you set that 'non-avaliable' image (or template) on page then that is where your dynamic image will have to fit?
    Thank you for any input on this subject, your time is very much appreciated.

    File > Page Setup = Scale <br />
    100% is usually best

  • Building a data flow task, within a foreach loop for dynamic table name, but ole db source not allowing variable

    In my control flow, I set up a variable for the table name, enumerated by SMO, following the instructions from the link here:
    http://www.bidn.com/blogs/mikedavis/ssis/156/using-a-for-each-loop-on-tables-ssis
    Now, I put a data flow task inside the foreach. I selected the OLE DB connection manger for my database, set the Data access mode to "Table name or view name variable", and selected my variable name from the drop down. So far so good. When I click on OK,
    it gives me an error 0x80040E37, basically saying it can't open the rowset for "my variable", Check that the object exists in the database.
    So, I assume I won't be able to do this "that' easily, and I will need to build a "SQL command from variable" or some such thing. Any advice on how to build this Source editor to dynamically name my columns from the variable?
    Thanks in advance!
    mpleaf

    Hi mpleaf,
    Please try to set "ValidateExternalData" to False in your OLE DB Source Properties and "DelayValidation" property to TRUE, please refer to similar threads:
    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/620557d9-41bc-4a40-86d5-0a8d2f910d8c/
    http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/456f2201-447c-41b3-bf27-b3ba47e6b737
    Thanks,
    Eileen
    Eileen Zhao
    TechNet Community Support

  • Display byte array image or ole object in Section through dynamic code?

    To Start I am a Complete Newbe to Crystal Reports. I have taken over a project originally written in VS2003 asp.net using SQL Server 2005 and older version of Crytal Reports. I have moved project to VS2010 and Cryatal Reports 10 still using SQL Server 2005. Have multiple reports (14 to be exact) that display data currently being pulled from database suing a dataset, each report has from 4 to 14 Sections. I have modified database table with two new fields. Field1 contains string data with full path to a scanned document (pdf or jpeg). Field2 holds a byte array of the actual image of the scanned document. I have tested the database and it does infact contain the byte array and can display the image via VB.net code. I can make the report display the scanned image using ole object.
    Now my real question: I need to add a new Section and it should display either the byte array of the scanned image or the actual scanned image (pdf or jpeg) . How can I have it do either of these options via code dynamicly while application is running?

    First; only CRVS2010 is supported on VS2010. You can download CRVS2010 from here;
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    Developer Help files are here:
    Report Application Server .NET API Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_api_en.zip
    Report Application Server .NET SDK Developer Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/xi4_rassdk_net_dg_en.zip
    SAP Crystal Reports .NET API Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip
    SAP Crystal Reports .NET SDK Developer Guide http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip
    To add the images, you have a number of options re. how to. You even have two SDKs that y ou can use (RAS and CR).
    Perhaps the best place to start is with KB [1296803 - How to add an image to a report using the Crystal Reports .NET InProc RAS SDK|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233393336333833303333%7D.do]. The KB describes how to add images to a report using the InProc RAS SDK, but also references other KBs that use CR SDK.
    Also, don't forget to use the search box in the top right corner of this web page.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Dynamically change path to OLE file

    I want to dynamically change the path of an OLE object that I am inserting into a report (word document). I am going through all the steps in the help but it is not working. I am on Crystal XI. Has anybody successfully done this?

    Hi,
    I have the same problem with Crystal 2008.
    I have insert OLE object Insert -- Ole Object I search my file and click Collegamento, but if I modify the file in report I don't have a file changed, and if I change Path in a Picture Path I don't have change.
    I see always the same file than I have import.
    Sorry for my Inglish.
    Please Help me.
    Serena

  • SSIS Ole DB Destination Dynamic Fail

    Hi, 
    I have a dataflow with Ole source and ole destination task. in the Ole Source I have the Data access mode "SQL command from variable" and I have the rset variable whith the select sentence : "Select * from [LES]."+ @[User::Tablename2]
    I obtain the Tablename2 variable in a loop. In the Ole destination I have the data access mode "table name or view name variable" and then I have another variable called:tname dest with the value: "[dbo]."+@[User::Tablename2].
    As I said, tablename 2 is the name of the table that I obtained in the loop. my problem is the error in the Ole db destination: 
    Description: Table/view either does not exist or contains errors
    Error at DataflowTask: "[dbo]."".check that the object exist in the data base.
    does anybody know why?

    Ok I catched your point guys, let me give you a long description, I have 2 Servers (Production-Testing).
    I Have A,B,C,D,E tables in Production server and only A,B, C tables in Testing server (same structure)
    I had created an SSIS pck that:
    1.- Get the list of tables missing in testing (D,E)
    2.- Creates the tables from Production to Testing (only the missing ones D,E)
    and before these steps I want to Insert from Production to Testing all the information in the created and existing tables(A,b,C,D,E)
    In this step I am having problem because everything is dynamic ( the name of the tables is saved in variable and with a loop I the name table by table)
    Your 1st step should be to create the missing tables (D,E). Use the one exec SQL task to create these tables. 2nd step will be to load the data into these tables. You need
    2 ole db sources and destination components to load these tables. Single ole db source and destination component will not work because SSIS is static metadata tool. Ofcourse the 2 tables will have different metadata and that will be handled
    by pair of componets.
    Thanks, hsbal

  • Dynamically Changing ole link

    Hello,
    I have a cr10 report with a ole object that links to an excel document. I need to be able to change which excel document this links to at app runtime. How would i go about this?
    Using vb6. Sorry if this isnt the correct place for this.

    Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with your directly

  • Inserting Dynamic Images in to a Crystal Report 10

    Hi all,
    I am trying to insert dynamic pictures into my report from repository, by getting the path for the picture from database fields. The version that I am using is Crystal Reports 10.
    Here is what I have done.
    I inserted an OLE object into the report, went to "Format Graphics" by right clicking on the OLE object, then to "Hyperlink" Tab (as I didn't see anything other than "Reset" button and picture dimension options under the "Picture" tab), and selected "File" Radio button (as I didn't want to display the picture as Hyperlink) and gave the @Filepath as the formula there. @Filepath is the formula that gives me the complete path for the JPEG that I need to insert in the report.
    filepath = field A + field B
    where field A is the location for the image and field B is the actual image name.
    the actual image is located in repository folder.
    I am not able to see the image in the report "Preview" section as it is showing it has an empty box and when I click on that empty OLE object, I am able to view the image in a separate window where as my requirement is to view the image within the report (not in a separate window).
    I didn't find anything useful under Format Graphics -> Picture tab.
    I appreciate any kind of help from you all.
    Thanks!

    That feature wasn't available nor was it supported in CR 10. You'll have to upgrade to CR Xi R2 or 2008 to allow using a database field as the location of the file.
    CR 10 would only load the picture when the report is opened, it will never update when clicking on the refresh button.

  • How to use one dynamic connection managers for multiple parallel data flow tasks

    hi there:
       I have 6 databases residing on the same server. What I want to do is  call a store procedure with identical name on each database dbo schema and transport results to a centralized place. The key is to have those SPs run in parallel instead
    of in sequence as each SP may take around 10 mins to finish. 
    The simplest way is to create 6 OLE DB connection managers and create 6 DFT tasks. However, I do not want to maintain 6 OLE DB connection managers as there is a chance to have more connection  managers.
     What I did so far is to create a OLD DB connection manager and use expression to set up connectionString properties so that it will get populated by variables at run time. It is fine when running all SPs in a Foreach Loop Container. However, it takes
    around 60 mins to finish.
      When I try to run it in parallel ( basically created 6 DFTs but use only one Dynamic Connection Manager), the connection string gets confused therefore all DFT tasks failed.
       Does anyone here have some experience on this topic?
    Thanks
     hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Yes, basically, on the connectionString property of ONE OLEDB, you are using an expression to supply value and this expression is pointing to a variable. 
    In this case , you can update this variable from a table which contains many connection strings. It's good if you want to execute Store procedures in a sequential order. When in parallel mode, this will cause issues as connectionString gets overwritten. 
     I am thinking about using script task to exec sp.
     The whole idea is that I do not want to maintain a large number of Connection Managers. 
    Hope it helps
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --
    So you are not able to run parallel executions using same conn mgmr, even with dynamic connectionstring, is that correct? Yes, script task will be a way to go if you wish to execute it in parallel, you may connect to SS and query the proper conn string with
    SELECT/WHERE clause in each script > pass it to a script variable > use that script variable and execute the proc. This will require only two things to change in each script, the WHERE condition to get the conn string and the proc name (you may even
    get the proc names the same way you get conn string) and everything else will be same. Let us know how that goes. 
    Hope no two or more procs doing insert/update/delete on the same tables.

Maybe you are looking for