Triangulated loaded object: Adjacent triangles
Hi;
I am loading an object (obj file), using getCoordinates, I am getting the points of various faces. I am then computing the centroid of each triangle face.
My problem is the following:
given some triangle face, How can I know adjacent triangles? (adjacency is determined by edges)??
I mean rather that doing it manually :~(
Similar Messages
-
I started using JasperReports for my web application report generation. I'm using JSPs for web development.
I created a .jrxml file using iReport and used the following code to generate the report.
try {
JasperDesign jasperDesign = JRXmlLoader.load("C:\\tomcat\\webapps\\web\\JSP\\reports\\samples\\pmm-final.jrxml");
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
// Second, create a map of parameters to pass to the report.
Map parameters = new HashMap();
parameters.put("Title", "JasperReport");
// Third, get a database connection
Connection conn = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb");
// Fourth, create JasperPrint using fillReport() method
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
parameters, conn);
// You can use JasperPrint to create PDF
//JasperExportManager.exportReportToPdfFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestReport.pdf");
JasperExportManager.exportReportToHtmlFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.html");
JRXlsExporter exporter = new JRXlsExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.xls");
exporter.exportReport();
// Or to view report in the JasperViewer
//JasperViewer.viewReport(jasperPrint);
} catch (JRException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
The above pmm-final.jrxml uses a subreport 'top.jasper'. Error being thrown while loading top.jasper file. Error is as follows.
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
ialVersionUID = 606
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
ialVersionUID = 606
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\tom
cat\webapps\web\JSP\reports\samples\top.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:90
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
eReport; local class incompatible: stream classdesc serialVersionUID = 604, loca
l class serialVersionUID = 606
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
... 33 more
Anyone pls help. It's bit urgent. Thanks.I was using iReport v0.5.0 and it uses jasperreports-0.6.7.jar (v0.6.7) of
JasperReports. I compiled and i deployed my application in BEA weblogic server. I got the error listed below. Only after i saw your
response explaining that iReport was the issue, i checked the iReport lib directory and found this version of jasperreport jar.
iReport creates a java source file which is used to a jasper file.
iReport will link in the v0.6.7 version of jasperReports. When you
deploy your web application it will recognize this version through the compiled jasper file and give you the InvalidClassException, even
though you only have one jasperReport jar deployed with your war file.
The way i fixed this problem was to create my web application with the
jasperreport jar comes with iReport.
Thanks for mentioning iReport.
Christopher
Error:
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
eReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10002
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
... -
Initial Load R3AM1 Parallel Processing (load objects)
Dear
After optimizing the parallel processing for the initial load between ISU -> CRM (Initial Load ISU / CRM Issues), I would like to know the following:
On the CRM system , transaction R3AM1 you can monitor the Load Objects.Is it possible to parallel process the load objects?
At this time we can see each block being processed one at the time. We can however see there are multiple queues available.
Any info would be most welcome.
Kind regards
LucasThere you have it!
increase MAX_PARALLEL_PROCESSES(changing crm table smofparsfa) from 5 to 10 and you will see more queues getting processed simultaneously.
More info:
The maximum number of loads and requests that can be processed simultaneously is defined in the table SMOFPARSFA under the MAX_PARALLEL_PROCESSES..The hierarchy in order of preference is initial load, request load, and then SDIMA.
If the number of running loads and the number of running requests in total is as much as or higher than this number, the remaining loads have to wait until a process is free again.Consequently this parameter can be modified if the processing of loads\requests is delayed due to non availability of free processes.The default value of this parameter is 5(as is there in your CRM as well)
There's no need to change anything in table 'CRMPAROLTP' on the CRM system -
Applying materials to loaded objects
Hi,
I'm trying to develop a program whereby users can change the colour of an object. The object is loaded from a 3ds file. Colour accuracy is important, so I was wondering if anyone had experience with altering the properties of a loaded objects material within java3D, as creating several objects with different materials is unfeasible due to the number of choices potentially available (several thousand).
Thanks in advance :)as far as i know
when you load an obj you get a branchgroup underneath the branch group you have some geometry.so run trough the enumeration of the branchGroup's child and go down all the branch (depending of the complexity of the object) until you get a shape3d and get the geometry.
like this it should work
Scene s1 = null;
try {
s1 = f1.load("test.obj");
} catch (Exception e) {
System.exit(1);
BranchGroup bg = s1.getSceneGroup();
Enumeration enum =bg.getAllChildren();
then underneath you'll have you shape3d where you can apply your Appearance
it work like the rest of the graphscene
cyril -
Can't load object code to CIN. Mashine specific.
Suddenly all the VIs using CINs have lost their object
code. They are broken and any attempt to load the code fails. I have "object code is not loaded" error.
I've tried with simple test examples but LabVIEW simply refuses to load object code into VI. It isn't getting any bigger in size. This problem is specific only for one of my computers running LabVIEW. My CINs are used for computational purposes, they do not refer to any hardware. How to solve this problem ?One way for this to happen is for the VI to be saved on a different platform (Mac / Linux / Windows). If you open a VI on a different platform from the one it was compiled on, its object code is tossed. If that VI is saved in that state, the object code is removed from the file.
Normal (non-CIN) VIs are recompiled as needed. But CINs need external object files for the platform they're being compiled on.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks -
Add child loader object dynamically
Hi I wanna add loader object on stage dynamically but showing some error.
function addImage(str:String){
ld=new Loader()
ld.load(new URLRequest(str+'.png'))
ld.contentLoaderInfo.addEventListener(Event.COMPLETE,loadfinish)
function loadfinish(event:Event):void{
addChild(event.target.data)<<<this is showing error
error is :
ReferenceError: Error #1069: Property data not found on flash.display.LoaderInfo and there is no default value.
at imagesearch_fla::MainTimeline/loadfinish()If you look up the Loader class in the help documentation you will see that the error ois telling you what the problem is. There is no "data" property for the Loader class. The Loader class, since it deals primarily with visual elements, has a "content" property.
The URLLoader class has a data property and that is mainly because the URLLoader class is used for data files. -
R3AS Load Objects - Changing Material Group Descriptions
Hello,
We use SAP ECC6 and SRM 5.
We currently have some R/3 Material Groups descriptions that need changing in our ERP system.
I am concerned with doing this as it appears that the material groups are replicated in SRM in the COMM_HEIRARCHY, albeit that they are not actually used in SRM.
The issue I have, is when using R3AS to load the material groups, which load object should I use to just amend descriptions?
It states in our documentation:
DNL_CUST_BASIS3 - BASIS CRM Online. We use this for the initital load, i.e. a new build
DNL_CUST_PROD1 - Product: Categories. We used this one for new product categories
DNL_CUST_PROD0 - Material Number Coversions. I don't know what this is used for
MATERIAL is for R/3 Material Master. I don't know what this is for
Can someone please advise which load object would be relevant to use, and also clarify what DNL_CUST_PROD0 and MATERIAL is used for.
Many Thanks
Lisa PallasHello Lisa,
Customizing object DNL_CUST_BASIS3: for data as Units of Measurement, currency, etc.
Customizing object DNL_CUST_PROD1: to replicate R/3 product categories
Customizing object DNL_CUST_PROD0: linked to customizing ( IMG: SAP Implementation Guide > SAP Supplier Relationship Management > SRM Server > Master Data > Products > Define Output Format and Storage Format of Product IDs
Business object MATERIAL: to replicate R/3 materials
According to your need, you have only to reload customizing object DNL_CUST_PROD1.
Regards.
Laurent. -
Hi Experts
Is there any Table or Transaction code which shows the details of the Load objects( Ex: BUPA_MAIN), and the Bdocs related to that load object.
Points will be rewarded.
Thanks in advance
Nadh.Hi Nadh,
Below are the list of the Tcodes that will give you the status of the middleware Load objects.
SMWP (Monitoring Cockpit)
SMW00 (Error Handler)
SMW01 (Display BDoc Messages)
SMW02 (BDoc Message Summary)
SMQ1 (Outbound Queue Monitor)
SMQ2 (Inbound Queue Monitor)
SMQR (Queue-In Scheduler)
SMQS (Queue-Out Scheduler)
SMWT (Middleware Trace)
<b>R3AS (Start Initial Load)</b>
R3AC6 (Define Middleware Parameters)
<b>R3AR2 (Define Requests)
R3AR3 (Monitor Requests)
R3AR4 (Start Requests)
</b> SDIMA (Data Integrity Manager)
SBDM (BDoc Modeler)
R3AC1 (Adapter Business Objects)
Let me know if you need any more details.
Thanks,
Samantak.
<b>Rewards points for useful answers.</b> -
Pre-loading objects and textures
I have made a java3d applet which starts with swing gui
then makes a scenegraph, something like this:
1). I configure/set the
3DCanvas
VirtualUniverse,
Locale
View BranchGroup ...
Scene BranchGroup (empty)
add a behavior to View
2). The behavior previously added is used to extend the scene and view
with new BranchGroups, Shape3Ds (some loaded from .obj files) and behaviors (right now, everything gets loaded in the behavior)
Now my question is, how can I load the .obj files and .jpg texture files
in the swing part or in part 1.) so that I can put them in the scene from the behavior?
I was thinking to build another BranchGroup in which I would add all the loaded objects with textures and then give a reference to the behavior which could then just copy the objects in the scene...
Does this make sense? or is there maybe another way to do it?
Also is there any easy way to modify the applet loader or make a custom one, so that the user doesn�t see the gray screen with "applet loading"?
thanksIf I detach a BranchGroup referenced by a behavior,
can the behavior still modify or access the BranchGroup???? -
Loader Object throwing #2148
Hello:
I have a swf file that I am developing to email to other
users, basically a standalong swf. The file is created with
localwithnetwork (using -use-network=false compiler parameter) so
it has no local file system access. The reason this swf has
localwithnetwork access is to open the hyperlinks in the swf. There
are few images stored as bytearrays in the swf which is loaded
using the Loader object using the following syntax:
this._loader.loadBytes(cachedImage.getBytes(),new
LoaderContext(false,ApplicationDomain.currentDomain));
But now when I open the swf I get the following error :
SecurityError: Error #2148: SWF file
file://\\SSRV\Data\tmp\File.swf cannot access local resource
file://\\SSRV\Data\tmp\File.swf/[[DYNAMIC]]/1. Only
local-with-filesystem and trusted local SWF files may access local
resources.
at flash.display::Loader/get content()
at
aclient.core::ImageBytesObject/onLoadComplete()[C:\aclient\core\ImageBytesObject.as:169]
I am not able to make out what is causing this error as I am
not loading anything from the file system. Everything that is being
loaded is from the swf itself and is in memory. So what could be
causing this error.? If I ignore this error the images do not load
and it shows a placeholder where the images should have been. I am
really out of luck here. I have used Security.Allowdomain('*") as
well but that also does not seems to work? Any help here would be a
big help.
Thanks!!Thanks Greg. But then how do i instruct the swf to ignore the
cache image? -
How to deactivate the load objects runnnig from CRM to CDM in TCode:R3AM1?
Hello Friends,
We are using CRM 4.0 , at the time of implementation they had done settings for Mobile sales also.But since implementation we are not using Mobile sales, using only CRM sales.
My concern is , in TCode : R3AM1 (Monitor Objects) , many of the objects are in status "Done" with source site " CRM " and Destination as "CDM". And these load objects are running on regular basis .I want to exclude or delete these load objects to run with destination as "CDM" and want only Source site as "OLTP" and destination as "CRM" and vice versa.
Also how can i find which background job is using what load objects?
Would appreciate for your valuable suggessions to achieve this.
Cheers
SreedharHello Soumya,
Thanks for the info.
My question is how to delete or remove or deactivate the destination as CDB(Mobile sales) in the R3AM1 T Code.Most of the standard Load objects are running in the background (as Background Job) and source site as "CRM" and Destination as "CDB" . Since we are not using Mobile sales , unnecessarily these load objects are running regularly and showing green "Done" status . How to find which job is running all these objects so that i can stop rnning this job?
Let me know for any additional info.
Cheers
Sreedhar
We are using CRM 4.0 , at the time of implementation they had done settings for Mobile sales also.But since implementation we are not using Mobile sales, using only CRM sales.
My concern is , in TCode : R3AM1 (Monitor Objects) , many of the objects are in status "Done" with source site " CRM " and Destination as "CD". And these load objects are running on regular basis .I want to exclude or delete these load objects to run with destination as "CDM" and want only Source site as "OLTP" and destination as "CRM" and vice versa.
Also how can i find which background job is using what load objects?
Would appreciate for your valuable suggessions to achieve this. -
I have an experiment setup that has a bunch of common equipment and a
chamber that supports 3 different experiment rigs. I created a Lookout
4.0.1 process for the common equipment and a separate process for each
experiment rig, (e.g., Common_Process, A_Process, B_Process,
C_Process). Only two processes need to be loaded and running
simulatneously (the common process and a specific experiment's process).
The common process is always loaded. I created a radio button selection
list to allow the operator to choose loading Experiment A, B, C or
None. I then created a loader object for each experiment. Here is my
annoyance. For Experiment A, the Loader object loads the process when
the radiobutton for Experiment A is selected (no prob
lems here). But
the trigger for unloading is when any of the other 3 radio buttons are
selected. The result is whenever we change experiments, I get a 2 error
messages. Process:Common_Process, Area:Comm, Description:"Unload:
Process not found: X_Process" where X is the name of the other
processes. Is there a better way to trigger an unload such that it will
not try to also unload the other processes?
Please remove the DELETE from my address and respond both directly to me
and to this NI usegroup.
TIA,
Alan
<><><><><><><><><><><><><><><><><><><><><>
Historical, though non-PC, quote of the day:
"We have staked the whole future of America's civilization,
not upon the power of government, far from it.
We have staked the future of all our political institutions
...upon the capacity of each and all of us to govern ourselves
according to the Ten Commandments of God." - James MadisonFYI - here is the response I got directly mailed to me from NI Support.
The solution works great. - Alan
=============================
From: [email protected]
Date: Tue, 25 Jul 2000 14:41:53 -0500
Subject: Re: Loader object - Unloading Logic Problem
Alan,
I have found a solution to your problem that you are receiving when you try
to
unload a process that has not been previously loaded. If you place the
following code in the unload portion of the Loader object (modifying it
accordingly) will eliminate the errors you were seeing.
if(Loader2.Load,if(!Radio1.2,1,0),0)
The code above checks to see if the process has been loaded by checking the
load
attribute of the Loader object. If the process has been loaded, then we
check
to see if we have selected a different process to load, if we have checked a
different process, then we tell the load object to unload the process.
Hope the above helps you in your development of your application.
Best Regards,
John Meier
National Instruments
http://www.ni.com/support
Alan Richard wrote:
> I have an experiment setup that has a bunch of common equipment and a
> chamber that supports 3 different experiment rigs. I created a Lookout
> 4.0.1 process for the common equipment and a separate process for each
> experiment rig, (e.g., Common_Process, A_Process, B_Process,
> C_Process). Only two processes need to be loaded and running
> simulatneously (the common process and a specific experiment's process).
>
> The common process is always loaded. I created a radio button selection
> list to allow the operator to choose loading Experiment A, B, C or
> None. I then created a loader object for each experiment. Here is my
> annoyance. For Experiment A, the Loader object loads the process when
> the radiobutton for Experiment A is selected (no problems here). But
> the trigger for unloading is when any of the other 3 radio buttons are
> selected. The result is whenever we change experiments, I get a 2 error
> messages. Process:Common_Process, Area:Comm, Description:"Unload:
> Process not found: X_Process" where X is the name of the other
> processes. Is there a better way to trigger an unload such that it will
> not try to also unload the other processes?
>
> Please remove the DELETE from my address and respond both directly to me
> and to this NI usegroup.
>
> TIA,
> Alan
>
> <><><><><><><><><><><><><><><><><><><><><>
>
> Historical, though non-PC, quote of the day:
>
> "We have staked the whole future of America's civilization,
> not upon the power of government, far from it.
> We have staked the future of all our political institutions
> ...upon the capacity of each and all of us to govern ourselves
> according to the Ten Commandments of God." - James Madison
<><><>><><><><><><><><><><><><><><><><><><>
Historical, though non-PC, quote of the day:
"We have staked the whole future of America's civilization,
not upon the power of government, far from it.
We have staked the future of all our political institutions
....upon the capacity of each and all of us to govern ourselves
according to the Ten Commandments of God." - James Madison -
I have written code to load in an object but this keeps giving me exceptions when i run the code to try and display the data from the object read in. My code is below:
Thanks
//--- cFaceRecGUIMain.java ---
//--- Edmund Smith 23/08/04 ---
//--- The GUI for the face recognition sofware contains buttons and ---
//--- display area for an image of a face ---
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import javax.swing.border.*;
public class cFaceRecGUIMain extends JFrame implements ActionListener {
//Create menu bar items
private JMenuItem jmiLoadPicture, jmiExit, jmiEdit;
//Recognize Button
private JButton jbtRecognize;
//Labels with info about picture
private String lblName, lblDOB, lblNI, lblStaffID;
//Panel to hold an image
private ImagePanel imagePanel = new ImagePanel();
//File Chooser
JFileChooser jFileChooser = new JFileChooser();
//BitmapReader
//cGetBytes getBytes = new cGetBytes();
//Face database
cFaceRecData faceDatabase = new cFaceRecData();
//Set default window sizes
final int xSize = 600;
final int ySize = 400;
//Array for holding pixels
int pixels[];
//Labels for menu items
final String lbljmiLoadPicture = "Load Picture for recogniton";
final String lbljmiExit = "Exit";
final String lbljmiEdit = "Edit face database";
//Create the frame to enter details about people
cFaceRecGUIEDetails enterDetailsFrame = new cFaceRecGUIEDetails();
//BitmapReader
cGetBytes getImageBytes = new cGetBytes();
//Main method
public static void main(String[] args)
cFaceRecGUIMain programFrame = new cFaceRecGUIMain();
programFrame.pack();
programFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
programFrame.setTitle("Face Recognizer");
programFrame.setSize(600, 400);
programFrame.setVisible(true);
//Constructor
public cFaceRecGUIMain() {
//Initialize menu bar
JMenuBar jmb = new JMenuBar();
setJMenuBar(jmb);
//Add menus
JMenu fileMenu = new JMenu("File");
fileMenu.setMnemonic('F');
jmb.add(fileMenu);
JMenu faceMenu = new JMenu("Face");
fileMenu.setMnemonic('A');
jmb.add(faceMenu);
JMenu helpMenu = new JMenu("Help");
fileMenu.setMnemonic('H');
jmb.add(helpMenu);
//Add menu items
fileMenu.add(jmiLoadPicture =
new JMenuItem(lbljmiLoadPicture, 'L'));
fileMenu.addSeparator();
fileMenu.add(jmiExit = new JMenuItem(lbljmiExit, 'X'));
faceMenu.add(jmiEdit = new JMenuItem(lbljmiEdit, 'E'));
//Set keyboard accelerators
jmiExit.setAccelerator(
KeyStroke.getKeyStroke(KeyEvent.VK_E, ActionEvent.CTRL_MASK));
jmiLoadPicture.setAccelerator(
KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK));
//Set up new panel
imagePanel.setBorder(new TitledBorder("Face"));
//Lay components on panel
imagePanel.setImageIcon(new ImageIcon("C:/Documents and Settings/" +
"Edmund Smith/My Documents/aface.bmp"));
imagePanel.add(jbtRecognize = new JButton("Recognize"),
BorderLayout.SOUTH);
setTitle("Face Recognizer");
//Labels to hold info
JPanel lblsAboutImagePanel = new JPanel();
lblsAboutImagePanel.setBorder(new TitledBorder("Details"));
lblsAboutImagePanel.setLayout(new GridLayout(4, 2));
lblsAboutImagePanel.add(new JLabel("Name"));
lblsAboutImagePanel.add(new JLabel(lblName));
lblsAboutImagePanel.add(new JLabel("DOB"));
lblsAboutImagePanel.add(new JLabel(lblDOB));
lblsAboutImagePanel.add(new JLabel("National insurance number"));
lblsAboutImagePanel.add(new JLabel(lblNI));
lblsAboutImagePanel.add(new JLabel("Staff ID"));
lblsAboutImagePanel.add(new JLabel(lblStaffID));
//Add the different panels to the frame
getContentPane().setLayout(new BorderLayout());
getContentPane().add(imagePanel, BorderLayout.WEST);
getContentPane().add(lblsAboutImagePanel, BorderLayout.CENTER);
//Register listeners
jmiExit.addActionListener(this);
jmiLoadPicture.addActionListener(this);
jmiEdit.addActionListener(this);
//Create the frame where you can enter the details of a person
enterDetailsFrame.pack();
enterDetailsFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
enterDetailsFrame.setTitle("Set up database");
enterDetailsFrame.setSize(xSize, ySize);
class edfClosingListener extends WindowAdapter {
public void windowClosing(WindowEvent e) {
//Check to see if the record has been changed
if (enterDetailsFrame.isRecordModified)
JOptionPane.showConfirmDialog(
null,
"Do you want to save changes to this record?",
"Face datbase",
JOptionPane.YES_NO_CANCEL_OPTION);
if (enterDetailsFrame.newPeople.size() > 0)
//create a temporary array to store the new people
person[] newPersons = new
person[enterDetailsFrame.newPeople.size()];
//Copy the people in the vector to the array
person tempPerson;
for (int i = 0; i < newPersons.length; i++)
tempPerson =
(person)enterDetailsFrame.newPeople.elementAt(i);
newPersons.path = tempPerson.path;
newPersons[i].personsName = tempPerson.personsName;
newPersons[i].personsDOB = tempPerson.personsDOB;
newPersons[i].personsNI = tempPerson.personsNI;
newPersons[i].personsStaffID = tempPerson.personsStaffID;
//Create new database
allPeople outPeople =
new allPeople(enterDetailsFrame.peopleInfo, newPersons);
//Save the database with the added records
enterDetailsFrame.faceDatabase.saveDatabase(outPeople);
else
//Save the database with the same number of records
enterDetailsFrame.faceDatabase.saveDatabase(
enterDetailsFrame.peopleInfo);
//Set the actions to happen when windows are closed
enterDetailsFrame.addWindowListener(new edfClosingListener());
closeWindow closeMainFrame = new closeWindow();
addWindowListener(closeMainFrame);
public void actionPerformed(ActionEvent e)
String actionCommand = e.getActionCommand();
if (e.getSource() instanceof JMenuItem) {
if (lbljmiExit.equals(actionCommand))
System.exit(0);
else if (lbljmiLoadPicture.equals(actionCommand))
open();
else if (lbljmiEdit.equals(actionCommand)) {
enterDetailsFrame.setVisible(true);
//No records have been modified
enterDetailsFrame.isRecordModified = false;
//Open a file
private void open() {
if (jFileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
try {
//Get the file name
String fileName = jFileChooser.getSelectedFile().getPath();
//Display the image
ImageIcon imagei = new ImageIcon(fileName);
imagePanel.setImageIcon(imagei);
//Set size of array for holiding bytes in the image
pixels =
new int[51 * 55];
//Get the pixels
// getBytes.getBMPImage(new FileInputStream(new File(fileName)), pixels);
catch (Exception e) {
System.out.print(e);
class ImagePanel extends JPanel {
//Label to hold the face
private JLabel jlblFace = new JLabel();
//Constructor
public ImagePanel() {
setLayout(new BorderLayout());
add(jlblFace, BorderLayout.CENTER);
//Set image and show it
public void setImageIcon(ImageIcon icon) {
jlblFace.setIcon(icon);
Dimension dimension =
new Dimension(icon.getIconWidth(), icon.getIconHeight());
jlblFace.setPreferredSize(dimension);
//--- cFaceRecGUIEDetails.java ---
//--- Edmund Smith 06/10/04 ---
//--- Allows the user to enter details about a person, view the ---
//--- database and add people to the database ---
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.border.*;
import java.util.*;
class cFaceRecGUIEDetails extends JFrame implements KeyListener, ActionListener
//Buttons to navigate the database
private JButton jbtPrevious, jbtNext;
//Button to load a face
private JButton jbtLoadFace;
//Fields to display info about the person
private JTextField jtfName, jtfDOB, jtfNI, jtfStaffID;
//Panel to hold an image
private ImagePanel imagePanel = new ImagePanel();
//File Chooser
private JFileChooser jFileChooser = new JFileChooser();
//Variable to tell whether record has been modified
boolean isRecordModified = false;
//Tells which record current being veiwed/changed
int currentRecord = 0;
//Stores new people to be added to database
Vector newPeople = new Vector();
//Face database
cFaceRecData faceDatabase;
public allPeople peopleInfo;
//Default Constructor
public cFaceRecGUIEDetails()
//Get the face database
faceDatabase = new cFaceRecData();
peopleInfo = faceDatabase.restoreDatabase();
//Panel to hold two buttons to navigate the database
JPanel jpButtons = new JPanel();
//Add navigation buttons to panel
jpButtons.setLayout(new FlowLayout());
jpButtons.add(jbtPrevious = new JButton());
jpButtons.add(jbtNext = new JButton());
//Set button text
jbtPrevious.setText("<");
jbtNext.setText(">");
//Panel to hold details about the person
JPanel jpDetails = new JPanel();
jpDetails.setBorder(new TitledBorder("Details"));
jpDetails.setLayout(new GridLayout(4, 2));
jpDetails.add(new JLabel("Name"));
jpDetails.add(jtfName = new JTextField());
jpDetails.add(new JLabel("DOB"));
jpDetails.add(jtfDOB = new JTextField());
jpDetails.add(new JLabel("National insurance number"));
jpDetails.add(jtfNI = new JTextField());
jpDetails.add(new JLabel("StaffID"));
jpDetails.add(jtfStaffID = new JTextField());
try
jtfName.setText(peopleInfo.people[currentRecord].personsName);
/* jtfDOB.setText(String.valueOf(
peopleInfo.people[currentRecord].personsDOB));
jtfNI.setText(String.valueOf(
peopleInfo.people[currentRecord].personsNI));
jtfStaffID.setText(String.valueOf(
peopleInfo.people[currentRecord].personsStaffID));*/
catch (Exception e)
System.out.print(e);
imagePanel.setBorder(new TitledBorder("Face"));
imagePanel.add(jbtLoadFace = new JButton("Load Face"));
//Main body panel
JPanel jpBody = new JPanel();
jpBody.add(imagePanel, BorderLayout.WEST);
jpBody.add(jpDetails, BorderLayout.CENTER);
//Place panels on frame
getContentPane().setLayout(new BorderLayout());
getContentPane().add(jpBody, BorderLayout.CENTER);
getContentPane().add(jpButtons, BorderLayout.SOUTH);
//Register listeners
jbtLoadFace.addActionListener(this);
jbtPrevious.addActionListener(this);
jbtNext.addActionListener(this);
//jtfName.addKeyListener(this);
jtfDOB.addKeyListener(this);
jtfNI.addKeyListener(this);
jtfStaffID.addKeyListener(this);
public void actionPerformed(ActionEvent e)
boolean goOn = false;
if (e.getSource() == jbtLoadFace)
isRecordModified = true;
setTitle("Set up datbase: Record Modified");
if (e.getSource() == jbtPrevious || e.getSource() == jbtNext)
if (isRecordModified == true)
int result = JOptionPane.showConfirmDialog(
null,
"Do you want to save changes to this record?",
"Face datbase",
JOptionPane.YES_NO_CANCEL_OPTION);
switch (result)
case JOptionPane.YES_OPTION:
saveRecordChanges();
goOn = true;
break;
case JOptionPane.NO_OPTION:
goOn = true;
break;
if (goOn == true)
//If user has not cancelled move to another record
if (e.getSource() == jbtPrevious)
moveForwardToRecord(true);
else
moveForwardToRecord(false);
public void saveRecordChanges()
boolean alreadyInDatabase = false;
//Put the values in the field into the database
try
if (currentRecord < peopleInfo.people.length)
alreadyInDatabase = true;
peopleInfo.people[currentRecord].personsName =
jtfName.getText();
peopleInfo.people[currentRecord].personsDOB =
Integer.parseInt(jtfDOB.getText());
peopleInfo.people[currentRecord].personsNI =
Integer.parseInt(jtfNI.getText());
peopleInfo.people[currentRecord].personsStaffID =
Integer.parseInt(jtfStaffID.getText());
catch (Exception e)
System.out.print(e);
if (alreadyInDatabase = false)
newPeople.add(new person("", jtfName.getText(),
Integer.parseInt(jtfDOB.getText()),
Integer.parseInt(jtfNI.getText()),
Integer.parseInt(jtfStaffID.getText())));
public void moveForwardToRecord(boolean forward)
isRecordModified = false;
setTitle("Set up datbase");
if (forward)
else
public void keyPressed(KeyEvent e)
isRecordModified = true;
setTitle("Set up datbase: Record Modified");
public void keyReleased(KeyEvent e) {
public void keyTyped(KeyEvent e) {
//Open a file
private void open()
if (jFileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
String fileName = jFileChooser.getSelectedFile().getPath();
imagePanel.setImageIcon(new ImageIcon(fileName));
isRecordModified = true;
setTitle("Set up datbase: Record Modified");
//--- cFaceRecData.java ---
//--- Edmund Smith 18/11/04 ---
//--- Stores and retrives info about a person and their face ---
import java.io.*;
import java.util.*;
class cFaceRecData
//The location of the database
final String dbPath = "C:/Documents and Settings/" +
"Edmund Smith/My Documents/fdatabase.dat";
//The data
allPeople inPeople;
//Saves the file
void saveDatabase(allPeople outPeople)
try
//Object output stream
ObjectOutputStream out =
new ObjectOutputStream(new FileOutputStream(dbPath));
//Write the object
out.writeObject(outPeople);
//Close the object output stream
out.close();
catch (IOException ex)
System.out.println(ex);
//Opens the file
allPeople restoreDatabase()
try
//Object input steam
ObjectInputStream in =
new ObjectInputStream(new FileInputStream(dbPath));
//Get the database
inPeople = (allPeople)in.readObject();
//Close the input stream
in.close();
catch (IOException ex)
System.out.println(ex);
catch (ClassNotFoundException ex)
System.out.println(ex);
//Return the database
return inPeople;
//Holds the info about a person
class person
//Stores the location of the image on disk
String path;
//Stores the name of a person
String personsName;
//Stores the dob of a person, their NI no, and employee ID
int personsDOB, personsNI, personsStaffID;
//Default constructor
public person(String inPath, String inName, int inDOB, int inNI,
int inStaffID)
//Stores the values which passed in
path = inPath;
personsName = inName;
personsDOB = inDOB;
personsNI = inNI;
personsStaffID = inStaffID;
//The database
class allPeople
person[] people;
int numPeople;
//Default constructor
public allPeople(person[] persons)
//Create the array to hold the people
people = new person[persons.length];
for (int i = 0; i < persons.length; i++)
people[i] = new person(persons[i].path,
persons[i].personsName,
persons[i].personsDOB,
persons[i].personsStaffID,
persons[i].personsNI);
//Updates the database
public allPeople(allPeople thePeople, person[] persons)
//Create the array to hold the people
int totalPeople = thePeople.people.length + persons.length;
people = new person[totalPeople];
for (int i = 0; i < totalPeople; i++)
if (i < thePeople.people.length)
people[i] = new person(thePeople.people[i].path,
thePeople.people[i].personsName,
thePeople.people[i].personsDOB,
thePeople.people[i].personsStaffID,
thePeople.people[i].personsNI);
else
people[i] = new person(persons[i].path,
persons[i].personsName,
persons[i].personsDOB,
persons[i].personsStaffID,
persons[i].personsNI);When posting code to the forum, please use the code button.
Also, post the exception message and indicate the line that gives the error. -
Loading Objects with SQL*Loader
When loading a column object with SQL*Loader, is it possible to specify a column specific 'TERMINATED BY' clause in the control file?
I've successfully defined column-level termination characters for regular columns and nested tables, but can't seem to find any way of achieving the same result with column objects.When loading a column object with SQL*Loader, is it possible to specify a column specific 'TERMINATED BY' clause in the control file?
I've successfully defined column-level termination characters for regular columns and nested tables, but can't seem to find any way of achieving the same result with column objects. -
Post Author: thecoffeemachine
CA Forum: .NET
I already posted this message in other Web sites, but I am almost getting crazy here and I need help:
HI:
The Web application I am testing was having several issues related to loading Crystal Reports. It was fixed and I do not know which of the 1000 things I did to fix it; but now it began, again, to have the same behavior after I had a conflict with another Web site that was in the same server.
The thing is that I had another virtual directory where resided a copy of the same Web app. for testing purposes/working with the Visual Studio. The reports were loading all fine, very fast, all perfect... And suddenly the assemblies of one Web site and the other began to "blend" together and..... well the same behaviors appeared again. I tried to copy the last stable backup and rebuild the Web app... but it did not work.
At the very first time that one requests the report, it shows without problem. At the second time it shows an error message related to "cannot submit to background processing", and sometimes "object not set to an instance.." ... and on the third time it just never shows up and the app. becomes unresponsive. I have to close the window and request the Web site again in another browser window. If I wish to see the report again I have to wait for hours until it shows it.
I am using Visual Studio 2003 and the Crystal Report version that was shipped with that Visual Studio version. I am working with Windows Server 2003 and SQL Server 2000. Below is the VB code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.SqlConnection1.Open()
Me.SqlSelectCommand1.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandReferences.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandTextbook.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandObjectives.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandTopicData.Parameters("@CourseCode").Value = Request.QueryString("CD") Me.SqlSelectCommandCourseOutcomes.Parameters("@CourseCode").Value = Request.QueryString("CD")
Me.SqlDataAdapterMainData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseSyllabusData") Me.SqlDataAdapterReferences.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseReferenceData") Me.SqlDataAdapterTextBook.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTextbookData") Me.SqlDataAdapterObjectives.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseObjectivesData") Me.SqlDataAdapterTopicData.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseTopicData")
Me.SqlDataAdapterCourseOutcomes.Fill(Me.DtsSyllabusCompleteData1, "procWebSelectCourseOutcomes")
Dim myExportOptions As CrystalDecisions.Shared.ExportOptions Dim myDiskFileOptions As CrystalDecisions.Shared.DiskFileDestinationOptions Dim myExportFile As String Dim myReport As New ABETFormat myReport.SetDataSource(Me.DtsSyllabusCompleteData1)
myExportFile = "C:UNTempPDF" & Session.SessionID.ToString & ".pdf" myDiskFileOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions myDiskFileOptions.DiskFileName = myExportFile myExportOptions = myReport.ExportOptions
With myExportOptions .DestinationOptions = myDiskFileOptions .ExportDestinationType = .ExportDestinationType.DiskFile .ExportFormatType = .ExportFormatType.PortableDocFormat End With
myReport.Export()
Response.ClearContent() Response.ClearHeaders() Response.ContentType = "application/pdf"
Response.WriteFile(myExportFile) Response.Flush() Response.Close() System.IO.File.Delete(myExportFile) Me.SqlConnection1.Close()
End Sub
I already have tried moving the Crystal Reports dll´s to the bin directory. ..... I have tried calling the Garbage Collector at page unload...I also have checked, inside the report, that the database is "up to date"... ... recycling the worker process of the IIS... etc...
I see that, in debbuging mode inside the Visual Studio, when the page loads the debbuging window shows a message notifying that the symbols related to the Crystal Reports dll's could not be loaded.
Should I need to modify the default properties of the database? I checked "database is case insensitive", "use indexes or server for speed".. I have tried checking and unchecking the box "performing grouping on server"
Oh by the way, my report has about 4 subreports in it. Each report loaded shows 1 or 2 pages.
ANY HELP WILL BE EXTREMELY APPRECIATED....
MMSSee [Crystal Reports For Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23&overridelayout=true] article, page 107 and on for details on how to use Crystal reports in session.
Ludek
Maybe you are looking for
-
I tried to create a pie chart from a table of info. I first selected the data to chart and then clicked the chart pop-up menu and selected pie chart. It created a chart, but then only used data from one cell, not the entire selection that I had chose
-
Transparency flattening - unwanted color added to transparent PSD files (IDCS3)
Recently (after switching to CS3) I began experiencing frustrating problems in relation to (what I think is the problem) transparency flattening. The problem seems to evolve in the printing process where "something" messes up the transparency by addi
-
Scaling footage in Premiere Pro CC
Hi, I recently shot some footage in 1080 that I am editing in PP CC. I created a 960 x 450 sequence, dragged the HD footage into the timeline and scaled the footage down by 50% to fit in the frame. When I playback the footage, it automatically play
-
Hello, I have a sql table that I'm simply trying to replace text in columns. Where it finds the name 'John Smith' replace it with 'Management, LLC' in the ADVISOR_NAME column. I tried the following but it didn't work. --SELECT REPLACE('ADVISOR_NAME
-
Videos crash at middle play...
I can't watch videos with Quicktime. With browsers (firefox2 OR ie7) the video loads, start playing, and after 1-30sec crashes (windows report). iTunes dosen't work too (podcasts or video files). Quicktime player... same thing. Downloaded the last ve