Can't export in code behind

Post Author: glauzier
CA Forum: Exporting
Hi,
I have a web application in VB.NET that generates reports and export them in pdf or excel in code-behind...
The application runs well and someday, I get this error:
ParameterFieldCurrentValueException was unhandled by user code
"Exception de HRESULT : 0x8004101A"
On the line, reportdocument.Export()
<code>
With RemplirDataSet() 'Function rturning an object of type report document
.ExportOptions.ExportDestinationType = _
CrystalDecisions.Shared.ExportDestinationType.DiskFile
.ExportOptions.ExportFormatType = _
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
.ExportOptions.DestinationOptions = dfdoCustomers
.Export()
.Close()
.Dispose()
End With
</code>
I am sure that all parameters are filled correctly.
I run with :
VisualStudio 2005
Crystal Report for Visual Studio 2005 10.2.3600.0
Do I need to install a service pack? which one? others suggestions?
Thanks

Holy cow, I got the export to work -- I have no idea what I did or if this works for anyone, but retracing my steps....
-I deleted all photos that were in the trash both in iPhoto and in the Finder
-Just for the heck of it, I tried some of the other exporting options to see how they work. (I'm a relatively infrequent user of iPhoo, hence my still working with version 2.0.1) I exported a few photos to see how the quicktime slideshow works...then I exported for web viewing. Both worked fine. Then I exported the photos...fullsize images...original format...use filename...use extention....and it worked!
It was almost as if doing the other exports somehow fixed the issue in the finder where I kept getting the duplicate photo message which forced me to try the drag and drop method which also didn't work (see above posts).
One downside: The export does not preserve the original dates fo import from my camera....bummer....I really like the chronological way iPhoto lets me view my photos...without that, in my newly created "iPhoto export" folder I have to do lots of guessing as to when particular pictures were taken.
Again, *your mileage may vary* -- I have no idea what (if any) effect the above had for me. But maybe this will help someone...somewhere.
  Mac OS X (10.3.9)  

Similar Messages

  • Can I find the code behind a conversion Type in bW

    Hi all,
    I've created a converion type referencing 0mateiral and created a target variable to be used in a query.  I was wondering where I can see the code behind the UOM converion that takes place.
    thanks

    Hi
    Not sure I understand your question
    But you can check RSUOM transaction code.
    Regards
    Anindya

  • How can I extract the code behind ORACLE XML reports?

    Afternoon All.
    I need to customise a copy of one of ORACLE's XML reports.  (Uninvoiced Receipts Report - CSTACREP - PL/SQL Stored Procedure)
    I therefore need to work on the data template behind the original report... But how  do I get at it? Where is it? Is it in a cetain directory somewhere because you can't download it via the application.
    Many many thanks for looking.
    Al

    #facepalm wrote:
    ..many thanks both of you for your help.
    The problem I have is that I only know 11i (and now moving to r12.1.3) report delopment via rdf report style and/or xsl data templates and have no idea how I can take this code in order to create a custom version of it.
    Is there a Note/link somewhere that can tame me through the custom report method using PL/SQL procedures?
    Many,  many thanks.
    Al
    There are many examples/docs/tutorials available, just google "XML Report Custom pls/sql" and you should get many hits.
    Oracle Applications, SQL, PL/SQL: Developing XML Publisher Report - using Data Source as PL/SQL Stored Procedure
    http://erpschools.com/articles/xml-publisher
    Thanks,
    Hussein

  • Is there anyway that I can view the program code behind the vi diagram?

    e.g. to view the vi code in C++ instead of G.

    G is translated into assembly code directly.
    There is no low level language like c needed.
    So there is nothing to view except assembly coding.
    greetings from the Netherlands

  • Labels pointing to pie slices with lines (or how 2 set chart properties in code behind)

    I want to be able to create lines outside of my pie chart with labels and have those lines drawn to connect to the pie chart.  I saw that this can be done in code behind in the following thread:
    MSDN thread on lines to pie slices
    But my problem is I never declared an instance of my chart when I am using my code behind.  My code that makes the reports visible is basically (but not completely) the following:
    ReportDataSet.Tables.Add(ReportDataTable)
    ReportViewer.Visible = True
    Dim ReportDataSource As ReportDataSource = New ReportDataSource("ReportDataSource", ReportDataSet.Tables(0))
    ReportViewer.LocalReport.ReportPath = ReportToDisplay.RDLCFileName
    ReportViewer.LocalReport.DataSources.Clear()
    ReportViewer.LocalReport.DataSources.Add(ReportDataSource)
    ReportDataSource.Name = ReportToDisplay.DataSetName
    ReportViewer.DataBind()
    ReportViewer.LocalReport.Refresh()
    ReportViewer.ShowReportBody = True
    ReportViewer.Width = RVWidth
    ReportViewer.Height = RVHeight
    So how do I set chart properties for my report given the above code?  As long as I can set my chart properties with the above code, I should be able to get this to work given the above thread and the link to the Label-Outside-of-Pie and Line-Color properties
    (or whatever) info on Microsoft's info page

    Hello,
    Based on your description, you want to design a
    pie chart with outside lables and pie line inside a .rdlc report. If so, you can add the Chart report item into the report after open a client report definition (.rdlc) file in graphical design mode. And then Set the
    PieLabelStyle property and PieLineColor property. Please refer to the following screen shot:
    The link your post above it about the
    Chart Web server control. As pre my undersntand, you cannot reference a Web server control inside .rdlc file.
    If you have any question about using Chart Web server control, you can post a question on
    Chart Controls for .NET Framework forum.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Code behind a Form

    dear all
    please explain me how can i see the code behind the Outgoing payments from in SAP B1 using the SAP B1 SDK.
    Thanks & Regards
    Kanishka

    Hi,
    Its not possible to see the code behind the forms.... i guess its possible in SAP R/3 using ABAP. But it's not possible here in SAP B1.
    Regards,
    Vasu Natari.

  • Can FC put action script in a 'code behind'.

    Once of the practices I do in FB3 is to move all my action script into 'code behind' files instead of having all the code in the mxml files.  Does FC have the option to do that (as part of the gen process) and if not, does anyone else who 'codes' instead of 'designs' feel that is a benefit?  I know I'd prefer it to be in a 'separate' as3 file.  Also, if I DO move the code into code behinds (I've not tried it yet), does FC have any issues reading the code behind?  I'll be trying that on a 'simple' project to be sure but figured I'd ask just in case anyone else wants to know...

    The two references cited helped answer questions about Adobe's overall philosophy and approach that came up as I worked a simple example down the design/development stack of tools from Illustrator (AI) to Catalyst (FC) to Flash Builder 4 (FB).
    Other questions that arose were:
    Each application (AI, FC, FB) contains tools for design with some degree of overlap.
    Will FC eventually include from AI (or Photoshop, InDesign, etc.) and the FB design view all functionality needed for interactive storyboarding and skin generation?
    Is it the intent for FC to become the designer's tool and FB the developer's tool, at least for application design?
    The diagram in the Gumbo skinning spec shows that base components and their subclasses are typically implemented in AS and skins in MXML and recommends this as the preferred design pattern. Yet when I converted one of my groups (essentially a form) to a customized component, and exported the project into FB, I noticed that FC had generated a single mxml file (CustomComponent1 ...) and not a pair of files (an X.as file for the base component and an X.mxml file for the skins).
    For several reasons, wouldn't you want to generate separate files as depicted in the Gumbo diagram as a starting point for code customization?
    How does one develop custom components in FB (or using AI+FC+FB) and package them as a library so that they can be dropped into FC and used in the way that the current set of 5 components (button, hscrollbar, vscrollbar, text input and data list) are used?
    How will I integrate my hand-coded dynamic components for data visualization alongside more generic and static app components on an RIA page?
    How would I use AI+FC to design liquid layouts where children at each level often utilize constraints (i.e. top, bottom, left, right) between parent and child?
    For agile methodologies, how will refactoring the interaction or software design work in this new world where interaction designers are trying to maintain full control over appearance and interactive behavior?
    Finally, I would like to know what tools and steps Ely used to develop the component shown in the video. It would be instructive to turn that into a tutorial that we could walk through, step by step, in slow motion
    While I understand the arguments for separation of design and development as a workflow methodology, those of us with development and HCI/visualization backgrounds building research prototypes would like to see integration of the design and development tools (from the perspective of the workflow, not the architecture and code).
    As Jordan said, the direction you are heading is inspiring. Keep up the good work.

  • Can I build a interactive log-in form with Edge and Export Raw code to edit?

    Hey Everyone,
    I love adobe edge, but I'm still getting used to it. It's very easy to use, but I ran into an issue. I am redesigning a webpage for a client and need to build a log-in page and re-design the site. The site is a Dashboard that will be on an ipad and computer. What I need to do is take my design and design a template for them to use. They require HTML4 and up with some coding (not a fan of coding, I am strictly a designer, and before you guys critize about why I took the job when I don't know coding, it's a side project they are having me do for them while the main design project is being evaluated and I'm on contract so I don't have a choice, still would like to learn how to achieve what I need) but I still want to maintain the animation I have planned for the log in, very simple nothing special. Basically what I want is when you log in and click in the "text" box the background image will go from the clear image to the blur image.
    What I've done so far,
    I built the log-in page as a test to see if it would work (didn't take long since I saved as a PSD and imporated the files). I've attached an imagw to show a visual of what I am trying to do. The animation works fgreat for what i need, but now I want the box I click in to be writtable inside and work with the animation. I can't seem to figure out how to make the box's I created typable to type in for a "Username" and "Password" in other word interative. I used the boxes provided in edge because they are HTML boxes, but I want them to become text boxes to enter the Username and Password (It doesn't have to be perfect just enough for me to type in to pass off to the programmers). I know you can make edge interative with muse and what not and I was hoping to achieve what I want for them so I can export it and pass it off to the programmers. Is there a way to add this in Edge? If not, I know you can export to Dreamweaver and  when I import the file to Dreamweaver I just see a grey box with the file I created (.oma I think) from Edge but not the content unless I "Preview it" in a browser.
    So is there a way to build what I want in edge without resorting to dreamweaver? If so and there is code to input can you guys provide step by step on how to put it in the program? And is there a way to export the project so I can pass the RAW code to the programmers to do there thing? Lastly, is there a way to incorporate Jquery mobile to Edge? For the Dashboard can I build the same thing in Edge? Example what will be in there are things like charts, Calendars, Dates, Etc, Etc.  If I need to resort to building it in dreamweaver I can provide the code for you guys to alter to change for what I need. Like I said I'm not a big fan of coding and a little stranger to it. I just know the basics and the fact I haven't touched dreamweaver since CS4 makes it even harder to use. Some tools I like are gone such as AP divs. However i like the new elements you can inject into the program such as the Jquery stuff, but for the simplist things I want to do such as moving them left or right or centering them is a different story.
    Please Help!
    Thanks!

    if you search on the forum you can find useful posts about creating a form in edge
    Zaxist

  • Can I export unused VPP codes from Configurator?

    We have "unsupervised" many iPads that had previously had Pages and Keynote loaded (we imported the VPP codes to Configurator)
    Can I "remove" the codes from Configurator to distribute them differently? When I sign in to VPP the codes are all "redeemed".

    To the best of my knowledge, once you import an Excel spreadsheet of VPP codes into Configurator those codes can only be used on that computer. You can install or remove apps from iPads and reallocate apps on that computer but can't take the codes out of Configurator to use them in another instance of Configurator or in an MDM for redistribution.
    The exception would be if you wanted to migrate from redemption codes to managed distribution in which case unredeemed codes or codes redeemed through Apple Configurator could be changed to managed distribution licenses. See http://support.apple.com/kb/HT6015 for details on this process.
    Hope this helps!
    ~Joe

  • How to execute the Code-Behind of .aspx linked using XML Data Connection

    I have a dashboard with a live XML Data Connection tied to a Default.aspx file.  That .aspx file has a Default.aspx.vb code-behind file tied to it with some logic in the Page_Load sub routine.  If i open the .aspx on my own in the browser, the code-behind executes properly.
    However, when I tie the .aspx to my dashboard and launch it I know for a fact the .aspx is being called (i have a placeholder on the dashboard to let me know if it executed or not) but its code-behind file is not.  I can't seem to find a solution through Google, would anyone be able to lead me in the right direction with this?  My code is as follows:
    Default.aspx
    <%@ Page Language="vb" aspcompat="true" Debug="true" validaterequest="false" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="scheduleAppointment._Default" %>
    <%    
        'tester to see that script executes, this puts "ScriptExecuted" on a label on my dashboard
        Dim sXML As String   
        sXML = "<data><variable name=" + Chr(34) + "Range_0" + Chr(34)
                      + "><row><column>ScriptExecuted</column></row></variable></data>"
        Response.Write(sXML)
    %>
    Default.aspx.vb
    Imports Microsoft.Office.Interop
    Partial Public Class _Default
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                (I have code here creating a Microsoft Outlook appointment and saving/scheduling it. This is not being
                 executed when running the dashboard itself, but I know the code works if I run the .aspx on my own
                 in Internet Explorer browser)
        End Sub
    End Class

    Easy fix, apparently code-behind doesn't execute in Preview mode.  Exported to .swf and ran in the Internet Explorer browser and it worked.

  • How do I add an image next to a hyperlink in code behind?

    I am trying to dynamically display hyperlinks in a div, and I am also trying to add an image to appear right next to each hyperlink. My code is able to add the hyperlinks to the div's but I can't figure out how to add an image to appear next to each hyperlink.
    I am not pretty good at doing this in the code behind, which is what the requirements demand. Can anyone please point me in the right direction? I am basically trying to add an image right next to each hyperlink as they are dynamically created. Here is what
    my code looks like...
    using (SPSite site = new SPSite(siteUrl))
    List<string> output = new List<string>();
    SPWeb web = site.RootWeb;
    SPList list = web.Lists["Applications"];
    SPQuery testQuery = new SPQuery();
    testQuery.Query = "<Where><Eq><FieldRef Name='Title'/><Value Type='Text'>" + MyEditorPartChoice + "</Value></Eq></Where>";
    foreach (SPListItem item in list.GetItems(testQuery))
    DynLink = new HyperLink();
    dynDiv = new HtmlGenericControl("DIV");
    lbl = new Label();
    environment = Convert.ToString(item["Environment"]);
    appUrl = Convert.ToString(item["App URL"]);
    lbl.Text = "<br>";
    dynDiv.ID = "dynDivCode";
    dynDiv.Style.Add(HtmlTextWriterStyle.Height, "40px");
    dynDiv.Style.Add(HtmlTextWriterStyle.Width, "100%");
    dynDiv.InnerHtml = environment;
    DynLink.NavigateUrl = appUrl;
    DynLink.Text = dynDiv.InnerHtml;
    DynLink.Visible = true;
    Controls.Add(DynLink);
    Controls.Add(lbl);
    I really appreciate the help

    I figured it out...just did this.
    Image img = new Image();
    img.ImageUrl = ;//ImgUrl;
    img.Style.Add("Position", "absolute");
    Hope that helps someone else who is wanting to do this for the first time.

  • How can i export a series of images in different aspect ratios to the same height

    How can i export a series of images in different aspect ratios to the same height?
    I wish to make a slider callery for my website. all the images need to be 750 Pixels high, the width does not matter.  I have a mixture of square pandscap and protraite images can i do thing as one export or do i have to do it twice?  Once for long edge and once for shot edge?
    Thanks

    Yes, you can but there is a trick to it.
    In the Export Dialog under <Image Sizing> select Widdth & Height.
    Then enter 750 pixels for Height.
    Put your cursor into the Width field behind all the numbers that appear there and with the backspace key delete the numbers. If you enter "0" it will not accept that. But it accepts when you just delete the field for Width with the backspace key. The Width field will now be just blank.
    When you then export all image will  have a height of 750 pixels and the width will fall variously according to thne height / width ratio.
    Or alternatively you can enter 7.5" for height at a resolution of 100 ppi.

  • How can we export table data to a CSV file??

    Hi,
    I have the following requirement. Initially business agreed upon, exporting the table data to Excel file. But now, they would like to export the table data to a CSV file, which is not being supported by af:exportCollectionActionListener component.
    Because, when i opened the exported CSV file, i can see the exported data sorrounded with HTML tags. Hence the issue.
    Does someone has any solution for this ... Like, how can we export the table data to csv format. And it should work similar to exporting the data to excel sheet.
    For youre reference here is the code which i have used to export the table data..
    ><f:facet name="menus">
    ><af:menu text="Menu" id="m1">
    ><af:commandMenuItem text="Print" id="cmi1">
    ><af:exportCollectionActionListener exportedId="t1"
    >title="CommunicationDistributionList"
    >filename="CommunicationDistributionList"
    >type="excelHTML"/> ---- I tried with removing value for this attribute. With no value, it did not worked at all.
    ></af:commandMenuItem>
    ></af:menu>
    ></f:facet>
    Thanks & Regards,
    Kiran Konjeti

    Hi Alex,
    I have already visited that POST and it works only in 10g. Not in 11g.
    I got the solution for this. The solution is :
    Use the following code in jsff
    ==================
    <af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="text/csv; charset=utf-8"
    >filename="test.csv"
    >method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
    ></af:commandButton>
    OR
    <af:commandButton text="Export Data" id="ctb1">><af:fileDownloadActionListener contentType="application/vnd.ms-excel; charset=utf-8"
    >filename="test.csv"
    >method="#{pageFlowScope.pageFlowScopeDemoAppMB.test}"/>
    ></af:commandButton>
    And place this code in ManagedBean
    ======================
    > public void test(FacesContext facesContext, OutputStream outputStream) throws IOException {
    > DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    >DCIteratorBinding itrBinding = (DCIteratorBinding)dcBindings.get("fetchDataIterator");
    >tableRows = itrBinding.getAllRowsInRange();
    preparaing column headers
    >PrintWriter out = new PrintWriter(outputStream);
    >out.print(" ID");
    >out.print(",");
    >out.print("Name");
    >out.print(",");
    >out.print("Designation");
    >out.print(",");
    >out.print("Salary");
    >out.println();
    preparing column data
    > for(Row row : tableRows){
    >DCDataRow dataRow = (DCDataRow)row;
    > DataLoaderDTO dto = (DataLoaderDTO)dataRow.getDataProvider();
    >out.print(dto.getId());
    >out.print(",");
    >out.print(dto.getName());
    >out.print(",");
    >out.print(dto.getDesgntn());
    >out.print(",");
    >out.print(dto.getSalary());
    >out.println();
    >}
    >out.flush();
    >out.close();
    > }
    And do the following settings(*OPTIONAL*) for your browser - Only in case, if the file is being blocked by IE
    ==================================================================
    http://ais-ss.usc.edu/helpdoc/main/browser/bris004b.html
    This resolves implementation of exporting table data to CSV file in 11g.
    Thanks & Regards,
    Kiran Konjeti

  • How can we export the data from OAF Page to Excel instead of .csv or .txt

    Hello,
    How can we export the data from OAF Page to Excel instead of .csv or .txt
    When i click on the export button it is exporting to txt file, But i need to export the data into Excel by default
    Please help me
    Thanks in advance
    Thanks,
    Raju
    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju
    Edited by: 1006649 on May 21, 2013 10:55 AM

    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju

  • How can I view the code for a routine in an update rule

    on loading data for 0PLANT_ATTR, I am getting an error for No Local Currency found in Plant 1000 and SAles Org 6000. 
    in looking at the update rules for this, I see that there is a routine for the update of the local currency:
    Perform GET_LOCCURRCY_FOR_PLANT
    USING COMM_STRUCTURE-PLANT
    COMM_STRUCTURE-SALESORG
    CHANGING hlp_monitor
    RESULT
    hlp_subrc.
    How do I see the code behind this?  I want to make sure that I understand everything that needs to be populated in Master Data so that I can ask my functional consultant to update all the necessary fields.
    Thanks
    JP

    Hi Riccardo,
    When I double click on it, I get a message at the bottom that says program reindexed. 
    After looking again, I found that when I double clicked on the comm structure, then the routine, I was able to see it.
    Thanks
    JP

Maybe you are looking for