Reference related
To create a reference to an object:
Test refTest = new Test();
as a reference to object Test, what really is this refTest:
1) refTest is a variable which carries the memory address of the Object Test
2) refTest is a handle which points to the object Test, but the real memory address of the Test is contained in a table where the handle relates to the memory address
3) It is neither 1) nor 2), but something else. If so, what is it?
Thanks
Java does not use the pointer, I really wonder the
real meaning of the reference and the difference from
the C++'s pointer.Assuming for the sake of argument that a Java implementation did use a pointer (possible just not what happens in practice) then the fundamental difference is:
The syntax.
What you can do with the pointer.
The second being the big one. All you can do with a pointer value in Java is create it (using the new operator) assign it (using the = operator), compare it (using the == operator) and dereference it (using the . operator).
In C++ on the other hand you can do all these things too (though the dereferencing operator is -> rather than .) but you can also perform arithmetic on it, cast it, and a bunch of other things.
They're very different languages.
Similar Messages
-
What is the function @RELATIVE used for?
Thanks in advance.Hi Arkangel,
From tech reference ,
@RELATIVE
Returns all members at the specified generation or level that are above or below the specified member in the database outline.
Syntax
@RELATIVE (mbrName, genLevNum | genLevName)
mbrName : Any valid single member name or member combination, or a function that returns a single member or member combination.
genLevNum: An integer value that defines the number of a generation or level. A positive integer defines a generation number. A value of 0 or a negative integer defines a level number.
genLevName: Generation or level name specification.
Description
This function returns all members at the specified generation or level that are above or below the specified member in the database outline.
Analytic Services sorts the generated list of members in ascending order. Using Sample Basic as an example, @RELATIVE(200,0), returns 200-10, 200-20, 200-30, 200-40 (in that order). This order is important to consider when you use the @RELATIVE member set function with certain forecasting and statistical functions.
Example
In the Sample Basic database:
@RELATIVE(Qtr1,3)
@RELATIVE(Qtr1,0)
both return the three members that are at generation 3 (or level 0) and that are below Qtr1 in the Sample Basic outline: Jan, Feb, and Mar (in that order).
@RELATIVE(Profit,-1)
returns the two members that are at level 1 and that are below Profit: Margin and Total Expenses (in that order).
Sandeep Reddy Enti
HCC
http://analytiks.blogspot.com -
July TechNet Guru Winners Announced
Below are the results for last month's Guru Competition - TechNet Guru Awards, July 2014
The full version can be found here:
http://blogs.technet.com/b/wikininjas/archive/2014/08/19/the-microsoft-technet-guru-awards-july-2014.aspx
We can only show the top three winners below, and images are missing, due to forum post length restrictions, but the link above shows the full version.
A big thank you also to the other authors who did not make the top three of each category.
BizTalk Technical Guru - July 2014
Steef-Jan Wiggers
Securing BizTalk endpoints leveraging Sentinet API Management Part 1
Ed Price: "Incredibly epic with great descriptions and diagrams! Another amazing article from Steef-Jan!"
Sandro Pereira: "Again good job Steef-Jan! Makes me want to try Sentinet"
TGN: "Stentinet is a great asset to BizTalk. Thanks for sharing such a great article."
Idar H
BizTalk Server 2013: How to publish a REST web service with POST
TGN: "Great guide, and welcome to the TechNet Wiki Idar!"
Ed Price: "Wonderfully clear instructions and images on this important topic!"
Sandro Pereira: "A great example."
Murugesan Mari Chettiar
BizTalk: Pattern to on-board increasing business partners
TGN: "Well done Murugesan, great article with a lot of good tips!"
Ed Price: "Amazing job on the diagram and orchestrations!"
Sandro Pereira: "A valid pattern, great job Murugesan, but configuration.xml is probably not the best option."
Forefront Identity Manager Technical Guru - July 2014
Scott Eastin
How to Calculate Manager Reference Value from PeopleSoft SQL View
PG: "This article is not discussing clasic, traditional way of managing reference/manager attribute. Nor is it discussing why the default way of working might fail. Furthermore this article uses multiple
un support techniques."
Ed Price: "Good sample that can be applied to other data as well! Because this article received two negative votes,
it auto-dropped to Silver. There is an excellent debate about the merit of this unsupported method in the article comments! Thank you to Scott and Peter for adding transparency to this topic!"
Microsoft Azure Technical Guru - July 2014
Mr X
How to set up Endpoints to Microsoft Azure VMs
JH: "Well written with a lot of step-by-step pictures!"
Ed Price: "Another great "How to" from Mr X! Clear instructions and the images help a ton! It would be good to include Azure overview articles and portals in the See Also section. Great job!"
Mr X
How to provide a temporary and secure remote access to Microsoft Azure VMs
JH: "Great article, especially the recommendations at the beginning."
Ed Price: "There's a lot of great depth in this article! Remote access to Azure VMs is an important topic!"
saramgsilva
Datatable design view for Azure SQL Database
Ed Price: "Good introduction and the arrows help make it super clear what to look for in the images! Important topic and good conclusion!"
JH: "Short but informative article. It would be useful to mention that some networks (especially corprate networks) block the access to this feature."
Microsoft Visio Technical Guru - July 2014
Durval Ramos
Reverse Engineering a SQL Server Database using Visio
SR: "Blog mentions that the "Demo will use Visio 2013" but that's not correct information. This feature is CUT from Visio 2013 and available till 2010."
AH: "It has good details. I like that it gives step by step process to use Reverse engineering using MS Visio. If Anything if the Author can change the screenshots that are in spanish to englisth that would be great."
Ed Price: "Great article! Durval addressed the issue and updated the article to reference Visio 2010 instead. You can see the conversation in the article comments. It's great to see authors interact in the article comments and make improvements
like this!"
Miscellaneous Technical Guru - July 2014
Durval Ramos
Automating a Data Paging using VBA on Excel
Ed Price: "Wow! The Introduction is great, there's a ton of information in the "Building" section, the red circles and lines on the images help a ton, a video (in Portuguese), and then the icing parts are the
References, See Also, and Other Languages section. Amazing job on this article!"
Richard Mueller: "Great links. A well formatted article."
TGN: "Great article and well explained, I would maybe try to put some effort in to changing the screenshots to english."
Mr X
Hyper-V and DHCP Guard feature
Richard Mueller: "Great documentation of a new feature. I like the images."
Ed Price: "Great job on the diagram!"
TGN: "good article, but a short explaination about what the feature do would make it even better!"
Mr X
Hyper-V and Router Guard feature
TGN: "Great article and explaination!"
Ed Price: "Good information and use of images! Great job!"
Richard Mueller: "Great documentation of a new feature."
SharePoint 2010 / 2013 Technical Guru - July 2014
Dan Christian
How to setup, configure and test SQL 2012 SP1 SSRS with SharePoint 2013
Ed Price: "This article from Dan is amazing! Fantastic job! Great use of images and great explanations along the way!"
Benoît Jester: "Another EXCELLENT article by Dan! A complete guide to install SSRS w/ SharePoint 2013!"
Naveen Sasi
Retreiving Server Date using SharePoint JSOM
Jinchun Chen: "Interesting solution!"
Ed Price: "Good explanation and good to have the See Also section. It would be nice to have the code broken up more and explained. Good job!"
Benoît Jester: "Thanks for the code,coul be useful!"
Johnathan Lightfoot
Web Sensitive Files and SharePoint 2010
Ed Price: "This is a good article with instructions and images. Thanks for removing the personalization (per the comment from Shanky). It could be improved with headers, a TOC, and a See Also section. The explanations
near the top are very helpful!"
Benoît Jester: "Interesting article on "Sensitive Files". Good to know!"
Jinchun Chen: "Nice"
Small Basic Technical Guru - July 2014
Ed Price - MSFT
Small Basic Survival Guide
Michiel Van Hoorn: "Oh the overload!"
RZ: "Very nicely categorized and organized. Way to go!"
Nonki Takahashi
Small Basic: Character Set - Unicode
RZ: "Very well explained. I wager that many programmers can't quite explain what's unicode and utf-8 :)"
Michiel Van Hoorn: "Great article on this fundamental element in programming"
Nonki Takahashi
Small Basic: Controls
Michiel Van Hoorn: "Practical topic with good examples"
SQL BI and Power BI Technical Guru - July 2014
Firdous S -MSFT
Getting Started with Forecasting and Hindcasting in Power View
PT: "Nice demonstration of this functionality using a simple set of data. Well done."
MR: "Some formatting issue - I fixed some issue in blank lines and too large pictures, but it should bulleted points should be fixed better"
RB: "Interesting and thorough walkthrough of the new Forecasting/Hindcasting feature in Power View for Office 365. It's based on an publicly available dataset so you are able to experiment yourself with these features"
NN: "Nice article with very good images"
DB: "Very Interesting"
SQL Server General and Database Engine Technical Guru - July 2014
Sean Gallardy
Cell Level Encryption With Always On Availability Groups
DB: "Interesting"
Jinchun Chen: "Excellent."
Ed Price: "Wow, great code and depth! The down side is with the personal "blog-like" tone, it's harder to collaborate on a Wiki article. (What if someone adds a section or a link to a similar article on a newer version? Is it
still personal?) Anyway, the content is fantastic!"
NN: "Very interesting article"
Samuel Lester: "Great write-up, very informative, and outstanding technique when building up the explanation of the problem."
DRC: "The article contains lot of information and a very clear explanation of each and every steps. It also provides all the necessary links for related topics. An important change which need to be made is : its not Always ON, its AlwaysOn.
Shanky
How to Install SQL Server 2012 SP2 on Standalone Instance of SQL Server
NN: "Nice article"
Samuel Lester: "Super informative, this will help a lot of people to walk through the process."
DRC: "<> This article explains the detailed steps of install and uninstall of Service pack. But i'm not sure whether we need such a detailed explanations for applying service pack. <> Considering the number of SP install issues,
this article would helpa lot of users overcome the issue. "
Ed Price: "This is a great "how to" article! It could be improved with a grammar pass. (Feel free to ask me or others in advance so we have time to help.) While this does duplicate some existing Library content, I like how it
links to the related articles at the bottom and this does add new depth, which can be very helpful! Another great article!"
System Center Technical Guru - July 2014
Mark Scholman
Orchestrator – Check System Center VM Snapshots
Ed Price: "Good explanation, and great image and code formatting! It could benefit from explanations of what the code is doing and from a See Also section that links to related Wiki articles. Great job
on this article!"
Mr X
How to use Orchestrator to automatically recover Website failures
by checking the HTTP status code
Ed Price: "What an epic article! Great job on the descriptions, images, and script! In this case, the table really pops for me and helps me understand the scenario better!"
Mr X
How to uninstall or remove SCCM client
Ed Price: "Good! Short and sweet. Could benefit from a See Also section. Good job!"
Transact-SQL Technical Guru - July 2014
Ronen Ariely
Transact-SQL: Join Order
Ed Price: "Great topic with an amazing use of code snippets and images! I love the Conclusions section and the Resources section is fantastic!"
JS: "Good article, well formatted and a good starting point for someone not being familiar with those pieces."
Samuel Lester: "Great write-up, explanation, and examples! "
Richard Mueller: "Great information on an advanced topic. Well explained with good examples and references."
Jinchun Chen: "Great. "
Naomi N
T-SQL: Find the Peak Hour
Samuel Lester: "Outstanding! Creative solution, nice comment about the importance of a good design, which would have made this a much simpler task. "
Richard Mueller: "An advanced topic using new techniques."
Jinchun Chen: "Nice"
JS: "Please provide the execution plans of you are already comparing the performance results."
Ed Price: "Great Problem Definition and good See Also section! Also, great code formatting! It could benefit from explaining what the code's doing more. Great article!"
Visakh16
Get Current Fiscal Year Dates
JS: "Please provide the parameter instead to pass IN current_timestamp instead of assuming the getdate() values."
Samuel Lester: "Handy little script to add to your T-SQL developer toolbox! Thanks for sharing!"
Richard Mueller: "I needed better explanation."
Ed Price: "Great topic and great job on the code! Could benefit from more explanation of what's happening in the code, as well as a See Also section. The explanations at the end are very helpful!"
Visual Basic Technical Guru - July 2014
.paul.
Simple_database_LogIn_system
MR: "Great article! Well written. Good note on plain text password. Don't forget to disable controls on hidden panels!"
Ed Price: "Amazing! The formatting is incredibly clean, and great response in the comments by addressing the encryption concern with a great section in the article! It would also be good to have the code sample available on the MSDN Gallery.
Fantastic article!"
Richard Mueller: "A very useful article that deserves to win. Could use more comments in the code. The "See Also" should link to other Wiki's."
Visual C# Technical Guru - July 2014
Eyal Shilony
A Client/Server Application Using Named Pipes
Peter Laker: "An old technology that is mistakenly overlooked these days. This is a great article that I hope breathes new life into named pipes."
Ed Price: "Great article and topic! Great explanations and code formatting. Could benefit from more explanations of what the code's doing, a See Also section, and an Additional Resources section. Great job! A lot of wonderful depth in
this article!"
NN: "Good article"
Jaliya Udagedara
Writing a Very Basic Dynamic Query using Expression Trees
NN: "Very nice explanation"
Peter Laker: "Brilliant article, well worth the read, thanks Jaliya."
Ed Price: "Fantastic job breaking up and explaining the code snippets. Very easy to follow! Great use of linking to (and leveraging) the MSDN Gallery! This is a great article!"
Ronen Ariely
C Sharp: Multi-Types Application
Ed Price: "Great job on the images, code snippets, and diagram! The Introduction, Case Study, and Resources sections are wonderful! Great article!"
NN: "Very interesting article"
Peter Laker: "A nice overview of some basic differences. Thanks Ronen."
Wiki and Portals Technical Guru - July 2014
Durval Ramos
SQL Server 2014 Portal
NN: "Great new portal"
Richard Mueller: "A great portal with useful links."
Ed Price: "Great job on this portal! It's very important to have a one-stop shop for articles about the latest versions, including SQL Server 2014!"
Dan Christian
How to add images to your TechNet Wiki article
Ed Price: "This is a fantastic end-to-end article, from OneDrive strategies to using tags! Great job on this!"
NN: "Very useful tips"
Richard Mueller: "A very well formatted article, on a useful topic."
Windows Phone and Windows Store Apps Technical Guru - July 2014
saramgsilva
Authentication using Facebook, Google and Microsoft accounts in Universal
Apps using MVVM
JH: "Just amazing! Love the amount of code snippets."
Ed Price: "Incredible depth! The flow diagrams and code formatting help a lot. Great Description section!"
Peter Laker: "Excellent and vey useful article from a well respected author."
Saad Mahmood
Expression Blend - Playing with Sample Data (WPF , Windows Phone)
JH: "One of my favorite features when working with XAML. Nice to see an article about it."
Ed Price: "Great formatting and use of images! The final few sections really give a lot of great information! As you see in the comments, Sandro added it to the TechNet Wiki magazine!"
Peter Laker: "I'm sure we have otehr examples of this in the Wiki, but gratefully received anyway!"
SubramanyamRaju.B
WP8.0 vs WP8.1 :All about new package.appxmanifest file at beginners level
Peter Laker: "Very useful introduction, nicely presented, thanks!"
JH: "A lot of information and pictures, but needs some reformatting."
Ed Price: "Good content and great use of images! Could benefit from a grammar pass. Good job!"
Windows Presentation Foundation (WPF) Technical Guru - July 2014
Magnus (MM8)
WPF: Implementing Custom Authentication And Authorization
KJ: "good stuff!"
Ed Price: "Great introduction and depth in the code!"
Peter Laker: "Epic post from Magnus. Pleny of code, just enough comment."
Andy ONeill
Thinking outside the box with the Adorner
KJ: "good stuff!"
Ed Price: "Wonderful topic! Could benefit from explanations of what the code's doing. Great job!"
Peter Laker: "Excellent article, as always, from Andy! I adore adorners!"
Windows Server Technical Guru - July 2014
Mr X
How to prevent rogue DHCP servers on your network
JM: "This is an excellent article on preventing and detecting rogue DHCP servers, nice work."
Ed Price: "Incredible depth in this article!"
Richard Mueller: "A great Wiki, with good structure and images. A great topic for system administrators."
Philippe Levesque: "I like the article, as it's a problem I seen a lot of time in real life (dhcp rogue)"
Mr X
How to get the HTTP status code for a Website running on a specific
Web server using Powershell
JM: "This is a good article, thanks again for your contributions."
Ed Price: "Good explanation!"
Richard Mueller: "Very useful code, giving administrators a great tool to monitor their web sites. Credit should be given to Lee Holmes."
Mr X
How to enable and configure DHCP MAC address filtering
Philippe Levesque: "Really good documentation ! "
Richard Mueller: "A very good article. Needs a "See Also" section to reference related Wiki articles."
JM: "This is a good article on how to enable MAC address filtering."
Ed Price: "Good article. I especially love the table!"
A huge thank you to EVERYONE who contributed an article to July's competition.
Hopefully we will see you ALL again in August 2014's listings?
If you haven't contributed an article for this month, and you think you can create a more useful, clever and better presented wiki article than the winners above,
here's your chance! :D
Best regards,
Pete Laker
More about the TechNet Guru Awards:
TechNet Guru Competitions
#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over to the one and only
TechNet Wiki, for future generations to benefit from! You'll never get archived again!
If you are a member of any user groups, please make sure you list them in the
Microsoft User Groups Portal. Microsoft are trying to help promote your groups, and collating them here is the first step.Congratulation to all of winners.:)
Regards,
Lydia Zhang -
What is the best solution for xml parsing?
Hi. I've got a huge problem with the XML xtra. When I was
running my application the memory usage started to grow up
and up...I've only parse the XML once on the beggining, so I
thought that maybe it was a problem with the garbage
colector, etc...after a loooong time, I've realized that
every time that I access some node to get some information, the
movie uses more and more memory. I've read in the groups that
the XML xtra is known for memory leaks issues, so I've
did what they suggested and changed to the dom-lingo cast
(the one from shocknet)...The problem is that now when I'm
parsing the XML it takes like 50 seconds (with the XML xtra
it was like 2 secs) something that I think it would be too slow
for the end-user... I don't know if there's a faster (and
free) alternative...
I'm using Director MX and my XML file it's about 550 kb
Thanks.It's reported tht the main memory leak has been fixed as of
10.1, a more
mino r node reference related leak can be worked around
http://www.killingmoon.com/director/bugs/xml_parser/
A workaround some used before the xtra beng made usable was
to call on
the Flash XML object available via in the flash xtra, here's
an article.
"Reading XML Into Director MX 2004 With a Simple Flash
Object"
http://director-online.com/buildArticle.php?id=1154 -
Valuation Class not appearing in Material Master (Finished Goods)
Hi Friends,
I am facing problem with Valuation Class not appearing while creation of Material Master especially in Finished Products
when i give the Valuation class it showing the message like below
*Valuation class IBM2 not allowed for material type Finished product*
*Message no. M3180*
*Diagnosis*
*The combination of values you have entered is not defined in the system.*
*Procedure*
*Check your entries, and choose a valid value or combination of values with F4.*
*If you want the value(s) to be defined in the system, contact your systems administrator.*
and When i press F4 in Valuation Class area it is not appearing
Can any one give me the solution
Regards,
RamHi Ram,
Go to Transaction Code OMSK. You will find three tabs there.
Go to the second tab i.e, valuation class, note the account category reference assigned to the valuation class "IBM2".
Come out of that screen and access the third tab ie., Material Type/Account Category reference.
Check whether Account category reference related to the valuation class "IBM2" is assigned to ther material type "Finished product" or not.
If not, assign the same. It should work.
Warm regards,
Murukan Arunachalam -
How to create table in Oracle 9i of name USER
To whom so ever forum member,
Please help me for creating table in Oracle 9i with the table name USER, though i know that it's reserve word for the Oracle DB
Please give me the query if any for the same.
Thanks in advance for timely help.
Kiran.CREATE USER user-name IDENTIFY BY password
user-name
The name of the user to be created. The name is an identifier with a maximum of 30 characters. Note that if support for delimited identifiers is on and the user name begins with an underscore, you must place the user name in quotation marks.
various identifiers possible
simple-identifier ::= identifier-start { identifier-part }
identifier-start ::= letter | % | _
identifier-part ::= letter | number | _ | @ | # | $
delimited-identifier ::= " delimited-identifier-part { delimited-identifier-part } "
delimited-identifier-part ::= non-double-quote-character | double-quote-symbol
double-quote-symbol ::= ""
An identifier cannot be a SQL reserved word.
An identifier may be either a simple identifier or a delimited identifier.
password
The password of the user to be created.
the reserved words are:
%AFTERHAVING | %ALPHAUP | %ALTER | %ALTER_USER | %BEGTRANS |
%CHECKPRIV | %CREATE_ROLE | %CREATE_USER | %DBUGFULL |
%DELDATA | %DESCRIPTION | %DROP_ANY_ROLE | %DROP_USER |
%EXACT | %EXTERNAL | %FILE | %FOREACH | %FULL |
%GRANT_ANY_PRIVILEGE | %GRANT_ANY_ROLE | %INORDER |
%INTERNAL | %INTEXT | %INTRANS | %INTRANSACTION | %MCODE |
%NOCHECK | %NODELDATA | %NOINDEX | %NOLOCK | %NOTRIGGER |
%NUMROWS | %ODBCOUT | %ROUTINE | %ROWCOUNT | %STARTSWITH |
%STRING | %THRESHOLD | %UPPER |
ABSOLUTE | ACTION | ADD | ALL | ALLOCATE | ALTER | AND |
ANY | ARE | AS | ASC | ASSERTION | AT | AUTHORIZATION | AVG |
BEGIN | BETWEEN | BIT | BIT_LENGTH | BOTH | BY | CASCADE |
CASE | CAST | CATALOG | CHAR | CHARACTER | CHARACTER_LENGTH |
CHAR_LENGTH | CHECK | CLOSE | COALESCE | COBOL | COLLATE |
COLLATION | COLUMN | COMMIT | CONNECT | CONNECTION |
CONSTRAINT | CONSTRAINTS | CONTINUE | CONVERT |
CORRESPONDING | COUNT | CREATE | CROSS | CURRENT |
CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP |
CURRENT_USER | CURSOR | DATE | DAY | DEALLOCATE | DEC |
DECIMAL | DECLARE | DEFAULT | DEFERRABLE | DEFERRED |
DELETE | DESC | DESCRIBE | DESCRIPTOR | DIAGNOSTICS |
DISCONNECT | DISTINCT | DOMAIN | DOUBLE | DROP | ELSE |
END | ENDEXEC | ESCAPE | EXCEPT | EXCEPTION | EXEC |
EXECUTE | EXISTS | EXTERNAL | EXTRACT | FALSE | FETCH |
FILE | FIRST | FLOAT | FOR | FOREIGN | FORTRAN | FOUND |
FROM | FULL | GET | GLOBAL | GO | GOTO | GRANT | GROUP |
HAVING | HOUR | IDENTITY | IMMEDIATE | IN | INDICATOR |
INITIALLY | INNER | INPUT | INSENSITIVE | INSERT | INT |
INTEGER | INTERSECT | INTERVAL | INTO | IS | ISOLATION |
JOIN | KEY | LANGUAGE | LAST | LEADING | LEFT | LEVEL |
LIKE | LOCAL | LOWER | MATCH | MAX | MIN | MINUTE |
MODULE | MONTH | NAMES | NATIONAL | NATURAL | NCHAR |
NEXT | NO | NOT | NULL | NULLIF | NUMERIC | OCTET_LENGTH |
OF | ON | ONLY | OPEN | OPTION | OR | ORDER | OUTER |
OUTPUT | OVERLAPS | PAD | PARTIAL | PASCAL | PLI |
POSITION | PRECISION | PREPARE | PRESERVE | PRIMARY |
PRIOR | PRIVILEGES | PROCEDURE | PUBLIC | READ | REAL |
REFERENCES | RELATIVE | RESTRICT | REVOKE | RIGHT | ROLE |
ROLLBACK | ROWS | SCHEMA | SCROLL | SECOND | SECTION |
SELECT | SESSION_USER | SET | SIZE | SMALLINT | SOME |
SPACE | SQL | SQLCODE | SQLERROR | SQLSTATE | SUBSTRING |
SUM | SYSTEM_USER | TABLE | TEMPORARY | THEN | TIME |
TIMESTAMP | TIMEZONE_HOUR | TIMEZONE_MINUTE | TO |
TRAILING | TRANSACTION | TRANSLATE | TRANSLATION | TRIM |
TRUE | UNION | UNIQUE | UNKNOWN | UPDATE | UPPER | USAGE |
<br>
USER |
<br>
USING | VALUE | VALUES | VARCHAR | VARYING | VIEW |
WHEN | WHENEVER | WHERE | WITH | WORK | WRITE | YEAR |
ZONE
hope it helps ...
roli -
CR Viewer Control Crashes Application
Hi,
I'm using VS2005
The CR that came with VS 2005 and CRSP1
Windows Forms application
Crystal Viewer control dropped on a form
My application behaves correctly on my development computer, but on a target machine the entire application crashes when the user closes the form that has the viewer control. This happens either if he loads a report or just opens the form and then closes it without running a report.
I deployed the application to the target machine by simply XCOPYing the application's executable. I did install the CR redist msi file on the target machine.
Is this a possible problem?
Do I need to create a VS deployment msi in order for any references related to the CR viewer control to be installed on the target?Hi Eric,
Try with creating msi might be some references are missing related to the Crystal Report viewer control.
Best source for runtime is [here|https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/crystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0]
Compare dlls on the both the computers
Modules is a good utility for this. Modules can be downloaded from here:
[https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip]
Regards,
Shweta -
"Load Report Failed" Error after upgrading to CR XI R2 and VS 2005
Previously I had visual studio 2003 and crystal report XI and on my website project and I have this function where users can download their monthly statement. and it was working fine. here is my code of the function...
Private Sub cmdStatement_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStatement.Click
Dim pReport As New ReportDocument
pReport = New ReportDocument()
Try
'Dim pTable As Table
pReport.Load(Server.MapPath(".") & "\reports\MonthlyStatement.rpt")
pReport.SetDatabaseLogon(dbUser, dbPassword, dbServer, dbDatabase)
pReport.RecordSelectionFormula = "{CCMSC.CID}='" & mCID & "'"
Dim pArray() As String =
DataAccess.SqlPublic.ExecuteDataset(cnString, "webDownloadEStatement", pArray)
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/pdf"
pReport.ExportToHttpResponse(CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat, Response, True, "DebtHelper_" & mCID & "_MonthlyStatement")
pReport.Dispose()
Catch ex As Exception
divMessage.Visible = True
lblMessage.Text = ex.Message
Finally
pReport.Dispose()
End Try
End Sub
Now, recently I upgraded my crystal to CR XI Release 2 SP6 and also upgraded my web project to Visual Studio 2005 with .NET 2.0. and now it gives me "report load failed" error on the very first line pReport.Load(......)
The project has updated the references related to crystal reports to the 11.5 version from 11.0. Not sure what am I missing here.
I have also opened the report file in the new crystal and saved it. I also opened it in Visual Studio itself and saved it.
I would appreciate any help possible.
Thanks
RajHi! Ludek,
I have tried to hard code the path. I checked the win/temp folder and the aspnet account already has the read/write permissions.
Below is the detailed error message:
Error Message: Load report failed.
Page Error Occurred: /MyDebthelper/reports.aspx
ExceptionType: System.Exception
Inner Exception: System.Runtime.InteropServices.COMException (0x800001F5): The Report Application Server failed at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
Stack Trace: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) at MyDebthelper.reports.cmdStatement_Click(Object sender, EventArgs e) in C:\Documents and Settings\RBhavsar\My Documents\Visual Studio 2005\Projects\MyDebtHelper\MyDebthelper\reports.aspx.vb:line 83 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Thanks
Raj
Edited by: debthelper on Apr 30, 2010 5:21 PM -
Hi everybody
I have a problem with loading images via URL into my PDFs.
I am using LCD ES2 Version 9.0.1....
I want to create a PDF which loads images from the internet but it does not work.
So far I have tried to add an image or image field to my PDF in the LCD and populate that image using the Object-->Field-->URL: palett. I put the URL in there like this http://www.adobe.com/imageshome/pdfgift_home.gif , tick the "embed image Data" checkbox (also tried with without that just to be sure) and save as Dynamic PDF (I also tried static) but when I open the PDF in adobe reader 9 or 10 or acrobat 9 there is no image showing. I also put the image in a subform and made that subform flowed, as well as the page itself and made the binding global.
I have the form properties - default set to "Acrobat and Adobe Reader version 9.0 or higher", Default Language to JavaScript, PDF Render format to Dynamic PDF.
I also tried using JavaScript events like "form:ready ImageField2.value.#image.href = "http://www.adobe.com/imageshome/pdfgift_home.gif" as discribed here http://partners.adobe.com/public/developer/en/tips/lc_dynamic_images.pdf but that also does not work.
What am I missing?
Any help would be great and greatly appreciated!!!
Thanks and best regards
NorbertAs far as I can tell, this use case is not allowed because of cross site references related security concerns. The form can refer to the images stored on the same server from where the PDF is served, but the images cannot come from external servers.
-
What is the part number for my MacBook Logic Board?
I have been searching through all of the Apple forums to help me with my issue. My issue is not knowing the partnumber for my MacBook Logic Board. The sticker that is usually found on the ram slots is NOT there.
The information I have for my Mac is:
2.4GHz/2x1GB/250GB/SD
EMC No.: 2254
Serial No: W8846MGM1AX
I hope someone in the community can help me.
Thanks Ahead of time.The wegenermedia reference relates to some earlier positive results others mentioned some years
ago, and due to that, I sent an iBook computer to them, in a padded box (over-engineered) that I
made, for diagnostic repair service, and it returned with stickers over the screws that said their
warranty would be void if the tape were damaged or removed. I felt sure enough of their work that
I later sold the computer to an 80+ y/o some miles from where I lived, and chose to give him free
support for two years. That means since he never had used a computer, and saw an ad I put on
a bulletin board in that town and chose to reply to it, I even went as far as helping set up printers
and other things he had never done, at no additional profit to me. The iBook was a complete kit
and included original box, plus later OS X and extras, at below other location retail.
I've been in contact with them about two other computers I have, one is an aluminum PowerBookG4
and the other a MacBook1.1 13-inch 1.83GHz first-model, each has issues. The MB1.1 is better, &
it only needs some parts to fix two issues, but it runs well. An occasional winking display, that does
best if left sitting with lid open; and by use of iStat Pro, I see odd information from the CPU temps on
one of the two cores in the processor. Sometimes, it says the core is sub-zero °F, other times hotter
than the other one. And also, it may disappear from the reporting to iStat altogether. So that may be
as simple as a need for new thermal paste if the CPU could be so doctored. They will inspect and
test an item before a firm cost estimate is arrived at. They've also workstations to repair logic boards.
So I'd be willing to bundle up my early MacBook1.1 1.83GHz and send it off for a $200 service, since
once it is opened most issues can be dealt with on the spot, and it would be returned with warranty.
Since my example is a clean one, it may be worth that service. It has 10.5.8; could run 10.6.8 OK.
Anyway, the discussion is a bit afield from the OP topic, except there are experts who can repair an
original logic board; some prefer to see and test the entire machine. Others may swap out the board
for one they've already serviced if available, for turnaround-time sake. They offer older refurbs, too.
Between the sales model number and processor version it should be easier to locate a replacement
for the original post's questionable part issue. Some devices had additional part numbers that may
work, depending on the length of product run and changes in manufacture over the duration.
{Seems to me you'd gone from using Macs awhile, to PC, and were in state of ID awhile, btw.
And the reference email I have, is your first + last name at gmail.}
In any event...
Good luck! -
Updates rules are not active when transported from developmet to quality
Dear friends,
I had made some in changes in strat routine in update rules BW development and saved in request and transported to qaultiy
se09-child request -parent request -
In bw testing I have activated the update rules and saved in different request but I now updates rules not acitve .
Please suggest me where ihave gone wrong ..
Regards
shekar reddyHi Sriram,
Download the below documents for reference related to Transports
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50b1d20e-c1e8-2c10-d9b9-d48eb3a83d89
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/205caa59-a948-2e10-b397-9ccafd3d4f5b
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2050db8b-9d90-2c10-2980-b13a4b0938f6
Regards,
Venkatesh -
How to reduce the execution time of this code?
Loop at porder1.
SELECT aufnr bstmg hsdat sgtxt bwart charg FROM mseg INTO
(porder-aufnr,porder-bstmg,porder-hsdat,porder-sgtxt,porder-bwart,
porder-charg)
WHERE matnr = porder1-matnr AND
aufnr = porder1-aufnr AND
werks = porder1-pwerk AND
( bwart = '101' OR
bwart = '102' ).
Endselect.
Endloop.
Regards
Praju .Hi prajwal.
I would like to suggest,
It is possible to reduce the time of execution by Increasing the number of fields in the WHERE clause as only those specific number of records are fetched which results in comparatively less execution time.
Also, SAP has designed such powerfull tools like Transactions - ST05, ST07, ST30, and many more
I would like to suggest you a couple of references relating to your case,
[SDN - Reference for Long execution time during processing of a select query|/thread/477540 [original link is broken];
[SDN - Reference for Reducing the Execution time of the program - Tools|How can i reduce time of execution;
[SDN - Reference for solutions to reduce the execution time of a program|How to reduce my query execution time?;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
Problem about Iway Adapter for SAP
My Problem is when I updated the data in SAP system, Iway adapter also updated but in my application did not update this data at all, so I needed to restart Weblogic server and then it was updated ka. Thus, whenever I changed the data in SAP, I need to stop and start Weblogic server again and again in order to make it update na ka. I don’t know what the problem is about the server and How I can get over it. Can somebody give me any suggestion?
Adapters on WebLogic 7.0 are very old and are application view based adapters.
Wanted to know what version of WebLogic and iWay adapter will support the integration with SAP ECC 6.0?It depends on how you plan to use the Adapters (ie with OSB or SOA Suite).
OSB 10.3.1--http://www.oracle.com/technology/products/soa/service-bus/collateral/documentation.html
http://www.oracle.com/technology/software/products/osb/index.html
http://download.oracle.com/otndocs/tech/products/integration/service-bus/SAPDEMO.zip
SOA Suite 11g- -http://download.oracle.com/docs/cd/E15523_01/doc.1111/e17057/toc.htm
iWay is the OEM for both adapters.
Also is there any recommended upgrade / migration plan defined for such a scenario? Adapter on WebLogic 7.0 are very old and there is no migration path.
Any compatibility issues to be aware of. Please provide any details / references related to thisNothing I'm aware of. To avail connectivity to SAP ECC6.0, you will have to use latest weblogic for which the adapters are certified.
Manoj -
How to call Java methods from a Windows application?
Hello all,
At our company, we need to integrate our product which is a Java Swing application with a Windows application. Specifically, we are trying to call Java methods that reside in our application from the Lotus Notes email client application, which is a native Windows application. Such that when a user clicks a button in the Lotus Notes email client, it will trigger an event in our Swing application. Is this possible using JNI? Do you know of any resources or references relating to this kind of a project?
Thanks,
Mete KuralIf there is some dll interface that lets Lotus Notes load up and use a DLL, then yes, this should be possible.
-
After accident and wrong operating,
a datafile in oracle database was corrupted and replaced
with older file, so this datafile's checkpoint_chang# number
was lower than other datafiles. Recover fail because database
run in NOARCHIVELOG mode, and this datafile' checkpoint_change#
is out of range of online redo log. There is NO backup file of
other datafiles, so other datafiles could not be restored with
older files.
Is there any way that can simply change a datafile's
checkpoint_change# number,make it same as other datafile,
and take it online,then open the database?
(Data in this datafile has no reference relation
with data in other datafile, so I think taking it
online will not break reference consistency)
nullAs I believe as per my knowledge that checkpoint# cannot be amended by the user , this activity taken care of by oracle itself.
Since your database in NoArchivelog mode so recovery also not possible. I have one option (basically R & D) that if your database activity is not much high and your redolog files are large enough i.e. they have not overwriiten till now after the problem then bring your database open using archivelog mode and then apply the recovery using these log files. Although Task is critical , so make your backups completely before moving this.
Otherwise if you are ready to loose the data of datafile which is old one then you can create new datafile with the same name at the same location and startup your database.
Better if you do these two options in Temporary database then finally applied to production.
Kindly do let me know at my id if things work or U have some other option.
[email protected]
null
Maybe you are looking for
-
"Document is not a valid photoshop document"
I started working on a file a few days ago and I saved it before closing out of Elements 11. When i came back it said that the document wasnt valid and i wasnt able to open it. I'm not sure what went wrong and i spent a great deal of time on this and
-
Search multiple folders and muiltiple files and combine to single file
I want to search multiple folders for muliple files and combine to single file name. The files I'm searching have same format, but where named differently in each of there processes. Now I want to combine based upon -SearchFor .. I'm having a proble
-
when i starst my mac i get a flashing folder with a question mark. i tried rebooting and holding the option button then i get 2 boxes, one with a refresh arrow and one with a forward arrow neither of them seem to do anything. now what
-
I am running into an issue that I have narrowed down to the PDF output generated by XML Publisher. I have an image file (JPEG format) that is dynamically loaded from a file in $OA_MEDIA. When the output is PDF and when it is printed, the image is enc
-
I have version 19.0, but when I try and open out gmail, it keeps sayting we do not have the lates browser and to please update it. I HAVE the latest firefox. The same thing happens when we try and open our msn mail as well