TextFlowUtil's export method is not setting whiteSpaceCollapse to "collapse"
I'm trying to convert some 'regular/normal' text with embedded images to TextFlow format. During the conversion process, I want the final TextFlow formatted text to have its whiteSpaceCollapse property as 'collapse'. However, when I user TextFlowUtil's export method, whiteSpaceCollapse property is set to 'preserve'. What am I doing wrong here?
Here is the simple program with trace statement that shows that the converted text has whiteSpaceCollapse="preserve" even when the TextFlow object's whiteSpaceCollapse is set to 'collapse': I'm using Flex 4.1 (build 16076).
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="600" minHeight="600"
creationComplete="application1_creationCompleteHandler(event)"
>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:RichText
width="500"
textFlow="{textFlow}"
/>
<fx:Script>
<![CDATA[
import flashx.textLayout.conversion.TextConverter;
import flashx.textLayout.elements.Configuration;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.formats.TextLayoutFormat;
import flashx.textLayout.formats.WhiteSpaceCollapse;
import mx.events.FlexEvent;
import spark.utils.TextFlowUtil;
[Bindable]
private var textFlow:TextFlow;
protected function application1_creationCompleteHandler(event:FlexEvent):void
var inputString:String =
"How come this <img height='95' width='275' source='http://www.google.com/intl/en_com/images/srpr/logo2w.png'/> doesn't work?";
var textFlowInitialFormat:TextLayoutFormat = new TextLayoutFormat();
textFlowInitialFormat.whiteSpaceCollapse = flashx.textLayout.formats.WhiteSpaceCollapse.COLLAPSE;
var config:Configuration = TextFlow.defaultConfiguration;
config.textFlowInitialFormat = textFlowInitialFormat;
TextFlow.defaultConfiguration = config;
textFlow = TextFlowUtil.importFromString(inputString, WhiteSpaceCollapse.COLLAPSE);
textFlow.whiteSpaceCollapse = flashx.textLayout.formats.WhiteSpaceCollapse.COLLAPSE;
var outputString:String = TextFlowUtil.export(textFlow).toXMLString();
trace(outputString);
textFlow =
TextConverter.importToFlow(
outputString,
TextConverter.TEXT_LAYOUT_FORMAT
]]>
</fx:Script>
</s:Application>
Hi,
According to your description, you want to remain the filtered data after sorting.
You need to save each FilterExpression to a string collection for sort and filter methods.
I did a test with code in the link below and it works properly:
http://sharethefrustration.blogspot.com/2010/02/spgridview-webpart-with-multiple-filter.html
Feel free to reply if there are still any questions.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support
Similar Messages
-
After creating a new slideshow I export it with the setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?
DVD's are only 640 x 480 (interlaced), so yes, the quality is not nearly as good. You should probably create your .mov in DV format to best match the DVD format
-
Hello, I have this issue and Ihave wasted atleast 2 days with this one. I have tried all possible solutions -
1. Turn Off Real time McAffee scanning -- I do not have real time scanning ON
2. Delete Bin folder and start all over by adding references -- Did not work
3. delete .compiles or refresh filesdelete temp files from asp.net temp files folder -- no .Compiled file. Deleted refresh files but no use
4. change temp file for appliation in compilation tag of web config -- No use
My application framework is .NET 4.5 and VSD 2012. I have tried to compile from C:\WINDOWS\Mi
crosoft.NET\Framework folder as well as C:\WINDOWS\Mi
crosoft.NET\Framework64 folder. Both gave same error.
I need urgent assistance plz.
Here is stack trace :
C:\Development\Convergence\Applications\CAP\WixSetup\WixSetupView>"C:\WINDOWS\Mi
crosoft.NET\Framework\v4.0.30319\aspnet_compiler.exe" -u -fixedNames -p "C:\Deve
lopment\Convergence\Applications\CAP\TouchPointTier\Presentations" -v / "C:\Deve
lopment\Convergence\Applications\CAP\PrecompiledWeb\ConvergenceCAP" -errorstack
Microsoft (R) ASP.NET Compilation Tool version 4.0.30319.17929
Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved.
error ASPRUNTIME: Object reference not set to an instance of an object.
[NullReferenceException]: Object reference not set to an instance of an object.
at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile,
String destPhysicalPath)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath star
tingVirtualDir, IEnumerable`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirt
ualDir, IEnumerable`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallba
ck callback, IEnumerable`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback, List`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback, List`1 excludedVirtualPaths)
at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback, Boolean forceCleanBuild)
at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback)
at System.Web.Compilation.Precompiler.Main(String[] args)
C:\Development\Convergence\Applications\CAP\WixSetup\WixSetupView>pause
Press any key to continue . . .I know these warning are not related to my issue that is the reason i am not able to understand what is wrong with it. Its a huge application and compiliing takes atleast 6-7 hrs and after that I get error in "copyPrecompiledFiles" method.
I have circular reference issue in application but when I build application in specific sequece, it goes away so after builing application with 0 errors, i execute command to precompile
rmdir C:\Precompiled /s /q
mkdir C:\Precompiled
"C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe" -u -fixedNames -p "C:\ApplicationPath" -v / "C:\Precompiled" -errorstack
pause -
Bug: Export dpi not set correctly
Export image as jpg
set the constrain maximum size say 6 x 4 inches.
set the dpi, in my case 402 dpi
export the image.
Open the image in PS (or other editor) and look at the image size.
LR has correctly resampled the image but hasn't set the dpi/resolution metadata correctly, it leaves it as 75dpi.In PS, what is the Pixel dimension of the image? if it is very large, then put in 402 and you will see the pixel dimension you want closer to the 6 in by 4 in you want.
Don
Don Ricklin, MacBook 1.83Ghz Duo 2 Core, Pentax *ist D
http://donricklin.blogspot.com/ -
Error "Lead selection not set for context node"
Hi everyone,
I've got a Tree control in WebDynpro ABAP and I've implemented an "expand all" button.
Here's the coding:
METHOD expand_node_rec.
DATA lo_el_child TYPE REF TO if_wd_context_element.
DATA lo_node_children TYPE wdr_context_child_map.
DATA wa_lo_node_children LIKE LINE OF lo_node_children.
DATA lo_nd_child TYPE REF TO if_wd_context_node.
DATA lo_kschl TYPE klschl.
DATA lv_has_children TYPE boolean.
lo_el_child = node->get_element( ).
lo_node_children = node->get_child_nodes( ).
node->get_attribute( EXPORTING name = 'KSCHL' IMPORTING value = lo_kschl ).
node->get_attribute( EXPORTING name = 'HAS_CHILDREN' IMPORTING value = lv_has_children ).
IF lv_has_children = abap_true.
node->set_attribute( name = 'IS_EXPANDED' value = abap_true ).
ENDIF.
LOOP AT lo_node_children INTO wa_lo_node_children.
lo_nd_child = wa_lo_node_children-node.
me->expand_node_rec( node = lo_nd_child ).
ENDLOOP.
ENDMETHOD.
However I'm getting the error above: "Lead selection not set for context node".
Any suggestions?
Edited by: DEVELOPMENT THEMIS on Jul 7, 2011 6:34 PMhi developement Themis,
I think u didn't diclare "node" as context node. So declare it as a context node before using as a context node..as below
DATA node TYPE REF TO if_wd_context_node.
or u can use "lo_nd_child " as ur context node in ur program in place of "node"
then I think this error will be removed.
thanks,
simadri -
Problem exporting crystal PDF using printoutputController.export method
Has anyone used PrintOutputController().export() method in ReportClientdocument to export Crystal PDF report to a JavaIOStream. I am getting an error when I try to export it using this method. The error I get is unable to connect RAS.rptappsrver followed by classcast unable to export to IXMLSerializable. Here is the code I am using.
Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("","RASReportFactory");
ReportClientDocument reportClientDoc = reportAppFactory.openDocument(reportID, 0, Locale.ENGLISH);
return reportClientDoc.getPrintOutputController().export(exportOptions);
Here is the exact Exception:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: FICLDEV303VWIN.RAS.rptappserver. --- com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable---- Error code:-2147217387 Error code name:connectServer
Caused by:
java.lang.ClassCastException: com/crystaldecisions/sdk/occa/report/exportoptions/ReportExportFormat incompatible with com/crystaldecisions/xml/serialization/IXMLSerializable
at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.saveContents(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.FetchReportViewingRequest.save(Unknown Source)
at com.crystaldecisions.xml.serialization.XMLObjectSerializer.save(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.a(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.CECORBACommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.getReportByteStream(CrystalReportServlet.java)
at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.processUsingReportExportControl(CrystalReportServlet.java)
at com.fmr.fic.fund2fund.web.servlet.CrystalReportServlet.doGet(CrystalReportServlet.java:128)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
I
Is there some setting I need to enable on the server to use the export function or any other idea will be appreciated?
Edited by: Dilshad Ahmed on Nov 5, 2008 5:55 PM
Edited by: Dilshad Ahmed on Nov 5, 2008 6:09 PMHere is the answer. After getting ReportClientDoc from factory we need to set the DatabaseController userid and password (if report on Crystal server is accessing oracle database as datasource). In addition we need to set parameters on the ReportClientDoc for reports and subreports before doing the the export.
Here is snippet of code: The code below is used to get ReportClientDocument and export it as PDF using bytestream.
/* Code for getting report client document */
private static synchronized ReportClientDocument getReportClientDocument() throws Exception
int count = 3;
ReportClientDocument rpt = null;
while (count > 0 && rpt == null)
try
if (_enterpriseSession == null)
ISessionMgr _sessionMgr = CrystalEnterprise.getSessionMgr();
_enterpriseSession = _sessionMgr.logon(CRYSTAL_USERID, CRYSTAL_PASSWORD, CRYSTAL_SERVER, CRYSTAL_AUTH);
LOG.info("Successful Logging into Crystal Server: " + CRYSTAL_SERVER);
_reportAppFactory = (IReportAppFactory)_enterpriseSession.getService("", "RASReportFactory");
_infoStore = (IInfoStore)_enterpriseSession.getService("InfoStore");
IInfoObjects result = _infoStore.query("Select SI_ID, SI_NAME From CI_INFOOBJECTS Where SI_NAME = '" + CRYSTAL_REPORT_NAME + "' And SI_INSTANCE = 0");
IInfoObject infoObject = (IInfoObject)result.get(0);
_reportId = infoObject.getID();
LOG.info("Located Report Id on Crystal Server: "+_reportId);
LOG.info("Created or found CR session");
rpt = _reportAppFactory.openDocument(_reportId, 0, Locale.ENGLISH);
break;
catch (Exception e)
rpt = null;
_enterpriseSession = null;
if (--count == 0)
throw e;
return rpt;
/* report for setting parameter */
private synchronized void setReportParameters(ParameterFieldController fieldController, String reportName,
String[] reportParameterValues, DataDefController subDataController) throws SalesforceException
try
Fields params = subDataController.getDataDefinition().getParameterFields();
for (Iterator it = params.iterator(); it.hasNext();)
ParameterField paramField = (ParameterField)it.next();
int paramIndex = getElementIndex(_reportParameters, paramField.getName());
if (paramIndex < 0)
throw new SalesforceException("Parameter not defined in the configuration");
ParameterFieldDiscreteValue dVal = new ParameterFieldDiscreteValue();
dVal.setValue(reportParameterValues[paramIndex]);
fieldController.setCurrentValue(reportName, paramField.getName(), dVal);
LOG.info("Completed setting parameters for report " + reportName);
catch (ReportSDKException e)
LOG.error("Set Report Parameters error: ", e);
throw new SalesforceException("Set Report Parameters error", e);
catch (Exception e)
LOG.error("Error from getElementIndex: ", e);
throw new SalesforceException("Set Report Parameters error", e);
/* main method used to getReport based on passing information */
private synchronized byte[] getReport(String contactId) throws SalesforceException
try
String[] reportParameterValues =
new String[] {_sessionId, _viewId, _requestId, contactId, _language};
DataDefController reportDefController = reportClientDoc.getDataDefController();
reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:Main" : "Main");
setReportParameters(reportDefController.getParameterFieldController(), null,
reportParameterValues, reportDefController);//.getDataDefinition().getParameterFields());
IStrings subRepNames = reportClientDoc.getSubreportController().getSubreportNames();
for (Iterator iname = subRepNames.iterator(); iname.hasNext();)
String subName = (String)iname.next();
reportParameterValues[0] = (_cache.equalsIgnoreCase("true") ? "CACHE:" : "") + subName;
setReportParameters(reportDefController.getParameterFieldController(), subName, reportParameterValues,
reportClientDoc.getSubreportController().getSubreport(subName).getDataDefController());//.getDataDefinition().getParameterFields());
InputStream is = reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
byte[] reportBinaries = new byte[is.available()];
is.read(reportBinaries);
is.close();
LOG.info("Completed exporting Crystal Report as InputStream using export() method: "+contactId);
return reportBinaries;
catch (ReportSDKException e)
LOG.error("Report generating error: ", e);
throw new SalesforceException("Report generating error", e);
catch (IOException e)
LOG.error("Report exporting error: ", e);
throw new SalesforceException("Report exporting error", e); -
Instance Dependent Public Method is not working for Workflow
Hello Experts,
I have made Custom class for a workflow. This class is triggering the WF fine but the problem is while trying to execute a WF task which contains a Instance Dependent & Public method its not working , the WF task is not processing though I'm passing the instance of the class properly from WF to WF task . When I'm changing the method to Static & Public then the workitem is executing perfectly. Can you please help & suggest the way to find the problem ?
Thanks & Regards ,
JeetAre you absolutely sure that you have the instance of the object in the workflow container? Open the technical log the see if the object instance is there - or is the container element initial (or "not set")?
yes it is instantiated properly no error over there.
What about if you test the method directly in SE24 (as an instance method)? Is it working then? If you can make it work in SE24 as an instance method and you are sure that the instance exists in the workflow,
I have checked the class in a stand alone run in this case also it runs fine as before.
The obvious question of course is that have you implemented the IF_WORKFLOW interface methods (the two first ones).
it is coded like below
BI_PERSISTENT~FIND_BY_LPOR
create object result
type
(lpor-typeid)
exporting
ip_key = lpor-instid.
CONSTRUCTOR
me->m_KEY = ip_key.
me->m_por-catid = 'CL'.
me->m_por-typeid = CL_ZZZ'.
me->m_por-instid = me->m_key
BI_PERSISTENT~LPOR
result = me->m_por.
Main confusion is Method is working only if declared STATIC & PUBLIC but not for the INSTANCE DEPENDENT & PUBLIC. -
WLI Application Build issues - The apt.factory.path was not set
Hi,
I have been trying to execute the Workshop exported Ant Script on Remote machine. In my local machine where i have access to workshop i am able to run the ant script whithout any issues. But when i try the same script on Remote machine (unix) I ma getting the below exception.
In my application, there are two projects. One web application and one EJB project, and i am trying to makr Ear file out of this.
If any of you have faced this issue or if you have any inputs pl help me out.
/opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:340: The following error occurred while executing this line:
/opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:690: The apt.factory.path was not set, but the beehive annotation processors must be on the apt factory path.
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Thanks
ChandranHi,
I have been trying to execute the Workshop exported Ant Script on Remote machine. In my local machine where i have access to workshop i am able to run the ant script whithout any issues. But when i try the same script on Remote machine (unix) I ma getting the below exception.
In my application, there are two projects. One web application and one EJB project, and i am trying to makr Ear file out of this.
If any of you have faced this issue or if you have any inputs pl help me out.
/opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:340: The following error occurred while executing this line:
/opt/buildserver/home/e0271019/WFM_1031_migrated_Source/Migrated_Code_With_AntScript/wfm/build.xml:690: The apt.factory.path was not set, but the beehive annotation processors must be on the apt factory path.
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Thanks
Chandran -
FormDataIntegration Security Manager for decryption not set
When trying to export or import from a specific PDF form, I am getting the error below. I suspect it's the pdf b/c I can import and export from different pdf forms. Any ideas or help in order to modify or resolve this problem?
com.adobe.livecycle.formdataintegration.client.ImportFormDataException: Security Manager for decryption is not set
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R at com.adobe.livecycle.formdataintegration.server.FormData.importData(FormData.java:98)
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R at java.lang.reflect.Method.invoke(Method.java:615)
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
[5/5/10 16:12:04:953 EDT] 0000001e SystemErr R aI think you answered your own question - the PDF is password protected therefore LC can't open it to extract the data.
You'll have to remove the security first. You can do that in a process by using the Common.EncryptionService.Remove PDF Password Encryption operation.
Note that you will need the document's password to remove the security. -
"object reference not set to an instance of an object" error while running ssrs report locally
Hi Folks,
I am a bit new to SSRS.
I am using ssrs 2012 and trying to use a method from a dll file. I am loaded the assembly file in reference of the report.
Now I am trying to use a static method from the Dll. e.g. applicationName.classname.MethodName()
But while running the report I am getting "object reference not set to an instance of an object" error.
For a note I am trying execute the report locally.
Any help would be highly appreciable.
sarat chandra sahooSorry for late reply Sinaloe..
I have added a dll file in my report reference. And in a textbox trying to execute this below.
=Recall.Common.LocalizationEx.Localization.GetString(Parameters!Culture.Value, "RFID", "BICustomerPortal")
where Getstring() is a static method in the dll.
I guess some configuration setting I am missing here.
1. I have copied these dlls in "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies" and "C:\Windows\Assembly".
sarat chandra sahoo -
Object reference not set to an instance of an object in treeView
Hello
I wrote this code. I have this Error "Object reference not set to an instance of an object" on " MessageBox.Show(tn.Text);"
in " MaintreeView_BeforeSelect ".
#region Remove BackColor of all treeview nodes
private void ClearBackColor()
TreeNodeCollection nodes = MaintreeView.Nodes;
foreach (TreeNode tn in nodes)
ClearRecursive(tn);
private void ClearRecursive(TreeNode treeNode)
foreach (TreeNode tn in treeNode.Nodes)
tn.BackColor = Color.Empty;
if(tn.IsSelected == true)
tn.TreeView.SelectedNode = null;
ClearRecursive(tn);
#endregion
private void MaintreeView_BeforeSelect(object sender, TreeViewCancelEventArgs e)
ClearBackColor();
TreeNode tn = MaintreeView.SelectedNode;
if (tn != null)
MessageBox.Show(tn.Text);
if (tn.Level == 7)Hi ARZARE,
I tested your code, it can show the tn.Text when in the rootnode.
I suggest you putting the ClearBackColor() at the last of the BeforeSelect Event. Or this method will clear the selectNode.
private void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e)
//ClearBackColor();
TreeNode tn = this.treeView1.SelectedNode;
if (tn != null)
MessageBox.Show(tn.Text);
ClearBackColor();
If you have any other concern regarding this issue, please feel free to let me know.
Best regards,
Youjun Tang
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Object Reference Not Set To An Instance Of An Object - Outlook Add-In - Add-In Express
Hi,
My Add-In has been developed in VS2010 using the Add-In Express pack.
Its a very simple add-in that shows an IT support ticket email detailing PC information. To use it, following installing the add-in, the user must select the tab in outlook and click on the Send IT Support Email button which will generate an Outlook Email
Template with specific information about the PC that I pull using VB.
It works fine in Windows 7 & 8, but throws an 'Object Reference Not Set To An Instance Of An Object' exception in Windows XP. Screenshot is shown below:
The code is below
Imports System.Runtime.InteropServices
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports AddinExpress.MSO
Imports System.Object
Imports System.Net
Imports System.Environment
Imports System.Net.NetworkInformation
Imports System.Windows.Forms.Application
Imports Microsoft.Office.Interop.Outlook
Imports outlook = Microsoft.Office.Interop.Outlook
'Add-in Express Add-in Module
<GuidAttribute("735B7BC8-DD2F-44D8-BC37-30D86769C065"), ProgIdAttribute("$safeprojectname$.AddinModule")> _
Public Class AddinModule
Inherits AddinExpress.MSO.ADXAddinModule
#Region " Add-in Express automatic code "
'Required by Add-in Express - do not modify
'the methods within this region
Public Overrides Function GetContainer() As System.ComponentModel.IContainer
If components Is Nothing Then
components = New System.ComponentModel.Container
End If
GetContainer = components
End Function
<ComRegisterFunctionAttribute()> _
Public Shared Sub AddinRegister(ByVal t As Type)
AddinExpress.MSO.ADXAddinModule.ADXRegister(t)
End Sub
<ComUnregisterFunctionAttribute()> _
Public Shared Sub AddinUnregister(ByVal t As Type)
AddinExpress.MSO.ADXAddinModule.ADXUnregister(t)
End Sub
Public Overrides Sub UninstallControls()
MyBase.UninstallControls()
End Sub
#End Region
Public Shared Shadows ReadOnly Property CurrentInstance() As AddinModule
Get
Return CType(AddinExpress.MSO.ADXAddinModule.CurrentInstance, AddinModule)
End Get
End Property
Private Sub AddInModule_AddInInitiatize(ByVal sender As Object, ByVal e As EventArgs) _
Handles MyBase.AddinInitialize
'Outlook 2010 = 14
If Me.HostMajorVersion >= 14 Then
AdxOlExplorerCommandBar1.UseForRibbon = False
End If
End Sub
Public ReadOnly Property OutlookApp() As Outlook._Application
Get
Return CType(HostApplication, Outlook._Application)
End Get
End Property
'Gets the MAC Address from the NIC Information
Function getMacAddress()
Dim nics() As NetworkInterface = _
NetworkInterface.GetAllNetworkInterfaces
Return nics(0).GetPhysicalAddress.ToString
End Function
Sub CreateTemplate()
Dim sHostName As String
Dim sDomain As String
Dim sUserName As String
Dim sOS As String
Dim s64 As String
Dim sMAC As String
Dim host As String = System.Net.Dns.GetHostName()
Dim LocalHostaddress As String = System.Net.Dns.GetHostEntry(host).AddressList(1).ToString()
Dim MyItem As Outlook.MailItem
'Finds the PC Number
sHostName = Environ$("computername")
'Finds the Domain
sDomain = Environ$("userdomain")
'Finds the Username logged into the PC
sUserName = (Environment.UserDomainName & "\" & Environment.UserName)
'Finds the Operating System
sOS = (My.Computer.Info.OSFullName)
'Shows the results collected from the getMacAddress Function in the sMac variable
sMAC = getMacAddress()
'Finds the Architecture of the Operating System - x86 or x64
If (Environment.Is64BitOperatingSystem) Then
s64 = ("64bit")
Else
s64 = ("32bit")
End If
'Creates a Template Email
MyItem = OutlookApp.CreateItem(Outlook.OlItemType.olMailItem)
'Configures the Sender as [email protected]
MyItem.To = "[email protected]"
'Shows the template
MyItem.Display()
'Shows all of the string in the Email Body
MyItem.HTMLBody = String.Concat("<b><u>IT SUPPORT TICKET</u></b>", "<br/><br/>", "<tr><b>PC Number: </b></tr>", sDomain, "\", sHostName, "<b></b>", "<br/><br/>", "<b>Username: </b>", sUserName, "<b></b>", "<br/><br/>", "<b>OS Version: </b>", sOS, s64, "<b></b>", "<br/><br/>", "<b>IP Address: </b>", LocalHostaddress, "<b></b>", "<br/><br/>", "<b>MAC Address: </b>", sMAC, "<b></b>", "<br/><br/>", "<b>Comment:</b>", "<br/>", "<i>Please give a brief description of your problem attaching a screen shot if possible</i>", "<br/><br/>") & MyItem.HTMLBody
End Sub
Private Sub AdxRibbonButton1_OnClick(ByVal sender As Object, ByVal control As IRibbonControl, ByVal pressed As Boolean) Handles AdxRibbonButton1.OnClick
'Runs CreateTemplate
CreateTemplate()
End Sub
Private Sub AdxCommandBarButton1_Click(ByVal sender As Object) Handles AdxCommandBarButton1.Click
'Runs CreateTemplate
CreateTemplate()
End Sub
End Class
I would appreciate any help with this whatsoever as I am pulling my hair out!!
Many Thanks!!
ChrisHi,
Welcome to MSDN forum.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Because your Add-in is developed using Add-in Express which is third-party, I suggest consulting Add-in Express forum:
http://www.add-in-express.com/forum/index.php for better support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
"Object reference not set to an instance of an object" when using Sheel Shah's example
I am attempting to use a custom add dialog as in http://blogs.msdn.com/b/lightswitch/archive/2011/07/07/creating-a-custom-add-or-edit-dialog.aspx and
I get the error "Object reference not set to an instance of an object." when clicking my button to AddEntity(). My code to call the control is:
User u = new User();
userdialoghelper.AddEntity(u);
Any ideas as to why I'm getting this error? I "think" that I've set up the class properly?
ScottI may be a couple of years late to the party here (using VS2013) but I also had some issues adapting to Yann's improvements over Sheel's code.
Sheel's screen code as provided has the word "Old in the InitializeDataWorkspace and the created methods. this does not work when copy/pasted. ALso removed the "UI" from "InitialiseUI()"
Following code can be used with Yann's Helper Class.
Namespace LightSwitchApplication
Public Class EditableCustomersGrid
Private customersDialogHelper As ModalWindow
Private Sub EditableCustomersGrid_InitializeDataWorkspace(saveChangesTo As System.Collections.Generic.List(Of Microsoft.LightSwitch.IDataService))
customersDialogHelper = New ModalWindow(Me.Customers, "CustomerViewDialog")
End Sub
Private Sub EditableCustomersGrid_Created()
customersDialogHelper.Initialise()
End Sub
Private Sub gridAddAndEditNew_CanExecute(ByRef result As Boolean)
customersDialogHelper.CanAdd()
End Sub
Private Sub gridAddAndEditNew_Execute()
customersDialogHelper.AddEntity()
End Sub
Private Sub gridEditSelected_CanExecute(ByRef result As Boolean)
customersDialogHelper.CanView()
End Sub
Private Sub gridEditSelected_Execute()
customersDialogHelper.ViewEntity()
End Sub
Private Sub EditDialogOk_Execute()
customersDialogHelper.DialogOk()
End Sub
Private Sub EditDialogCancel_Execute()
customersDialogHelper.DialogCancel()
End Sub
End Class
End Namespace -
I have a new iphone and want to purchase ringtones from itunes. Itunes is asking answers for security questions I did not set up and I can't answer them. How do I get past this to be able to purchase. I can purchase songs on my MAC and sync but itunes doesn't give the option to purchase ringtones on the MAC, just the iphone.
If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(106007) -
Hi Expert , crystal report export problem. system not responding
Hi,
crystal report export problem. system not responding.
Thanks
Rajkumar GuptaDear Raj,
Please try this
Try
Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDoc.Load(rptPath)
rptView.ShowExportButton = True
rptView.ReportSource = rptDoc
For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
oSubReport = rptObject
rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
End If
Next
Next
'Setting Paper
Dim rawKind As Integer = 0
Dim printSet As New System.Drawing.Printing.PrinterSettings
For i As Integer = 0 To printSet.PaperSizes.Count - 1
If printSet.PaperSizes.Item(i).PaperName.ToUpper = PaperName.ToUpper Then
rawKind = CInt(printSet.PaperSizes.Item(i).RawKind)
Exit For
End If
Next
Dim MyTest As New SaveFileDialog
rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
rptDoc.ExportToStream(ExportFormatType.Excel)
'rptDoc.SaveAs("C:\TBKING.xls", True)
'''How to export the report
Try
Dim CrExportOptions As ExportOptions
Dim CrDiskFileDestinationOptions As New _
DiskFileDestinationOptions()
Dim rename As String
rename = rptName.Replace(".rpt", "")
Dim CrFormatTypeOptions As New ExcelFormatOptions
CrDiskFileDestinationOptions.DiskFileName = _
"c:\Report\" & rename & "_Export_File.xls"
CrExportOptions = rptDoc.ExportOptions
With CrExportOptions
.ExportDestinationType = ExportDestinationType.DiskFile
.ExportFormatType = ExportFormatType.Excel
.DestinationOptions = CrDiskFileDestinationOptions
.FormatOptions = CrFormatTypeOptions
End With
rptDoc.Export()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
'' end by kevin shah
rptView.Show()
rptView.ShowExportButton = True
Dim oFrm As New System.Windows.Forms.Form
rptView.DisplayGroupTree = True
rptView.Dock = System.Windows.Forms.DockStyle.Fill
rptView.Location = New System.Drawing.Point(0, 0)
oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
oFrm.Controls.Add(rptView)
oFrm.Name = "Report Viewer"
oFrm.Text = "Report Viewer11"
oFrm.ResumeLayout(True)
oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
oFrm.TopMost = True
oFrm.ShowDialog()
Catch ex As Exception
objMain.objApplication.MessageBox(ex.Message)
End Try
By pressing this button XLS file be generated on C:\report\
Hope this will resolved the issue
Thanks
Kevin
Maybe you are looking for
-
Why does my Macbook Pro lasts for only a meagre 1 to 2 hrs on battery when charged fully?
My macbook pro only last for around 1 to 2 hours. Can anyone tell me what is wrong with my battery?
-
Hello. I have a couple of questions I was hoping someone could answer. 1. How many gigabytes are necessary on my harddrive in order to import one hour of mini-DV tape? 2. Is there a best DVD format to use? 3. Do DVDs come in different capacities? 4.
-
Unable to create File System Repository using Network Path
Hi All, I am trying to create a File System Repository. I created a networkpath and windows system and used the same while creating File Repository according to the steps in help. With out using Networkpath(i.e.,If I use IP address,I am able to creat
-
Help, I am trying to download the trial version of LR4 but when I click download, I get nothing. I already own LR3 so I am not sure why I can not download this version.
-
Can an image button make an alert box popup?
So, my first question is: Can a SAVE button that has a button style of IMAGE trigger an alert box to popup? If yes, then I have a second question: If I am suppose to use the ONCLICK event, where do I put this code for this type of button? The BUTTON