DatabaseLogOnList - Use the LogOnInfos property to specify logon infos

Hi,
I use CRYSTAL REPORT 2008 to develop reports and view these reports using crystalreportsviewers in web application on dot net framework.
when I run this application the report displayed the messege "DatabaseLogOnList - Use the LogOnInfos property to specify logon infos".
could you tell me why and soluction please?
The code is:
ParameterField parametro;
ParameterDiscreteValue parametroVal;
DataTable dt;
ReportDocument crReportDocument;
FormulaFieldDefinition crFormulaDefinition;
string db = System.Configuration.ConfigurationManager.AppSettings["Database"].ToString();
string user = System.Configuration.ConfigurationManager.AppSettings["Username"].ToString();
string pwd = System.Configuration.ConfigurationManager.AppSettings["Password"].ToString();
string server = System.Configuration.ConfigurationManager.AppSettings["Server"].ToString();
string RPTtemplatePath;
//--inizializzazione report--
crReportDocument = new ReportDocument();
crReportDocument.Load(RPTtemplatePath);
//--inizializzazione report--
ConnectionInfo crConnInfo = new ConnectionInfo();
crConnInfo.DatabaseName = db;
crConnInfo.UserID = user;
crConnInfo.Password = pwd;
crConnInfo.ServerName = server;
crConnInfo.IntegratedSecurity = false;                                               
//autentico il mio report principale
SetDBLogonForReport(crConnInfo, crReportDocument);
//autentico tutti i sottoreport richiamati dal report principale
SetDBLogonForSubreports(crConnInfo, crReportDocument);
//--istanza ODS per report (DATATABLE)--
dt = new DataTable();
it.cdlan.gestionale.bll.objectManager.report.Report_Mgr MGR = new it.cdlan.gestionale.bll.objectManager.report.Report_Mgr();
dt = MGR.GetDTInterventiFatturazione(idAnagrafica, idServizio, dataFatturazione);
crReportDocument.SetDataSource(dt);
//--istanza ODS per report (DATATABLE)--
//--parametri per report--
parametro = new ParameterField();
parametroVal = new ParameterDiscreteValue();
parametro.Name = "idAnagrafica";
parametroVal.Value = idAnagrafica;
crReportDocument.SetParameterValue("idAnagrafica", parametroVal.Value);
parametro = new ParameterField();
parametroVal = new ParameterDiscreteValue();
parametro.Name = "idServizio";
parametroVal.Value = idServizio;
crReportDocument.SetParameterValue("idServizio", parametroVal.Value);
parametro = new ParameterField();
parametroVal = new ParameterDiscreteValue();
parametro.Name = "dataFatturazione";
parametroVal.Value = dataFatturazione;
crReportDocument.SetParameterValue("dataFatturazione", parametroVal.Value);
//--parametri per report--
//--parametri Per Intestazione Titolo Report--
crFormulaDefinition = crReportDocument.DataDefinition.FormulaFields["Intestazione"];
crFormulaDefinition.Text = "\" " + DateTime.Parse(dataFatturazione.ToString()).ToString("dd/MM/yyyy") + "\"";
//--parametri Per Intestazione Titolo Report--
CrystalReportViewer1.ReportSource = crReportDocument;
private void SetDBLogonForSubreports(ConnectionInfo crConnInfo, ReportDocument crReportDocument)
        Sections sections = crReportDocument.ReportDefinition.Sections;
        foreach (Section section in sections)
            ReportObjects crReportObjects = section.ReportObjects;
            foreach (ReportObject crReportObject in crReportObjects)
                if (crReportObject.Kind == ReportObjectKind.SubreportObject)
                    SubreportObject subReport = (SubreportObject)crReportObject;
                    ReportDocument subReportDocument = subReport.OpenSubreport(subReport.SubreportName);
                    SetDBLogonForReport(crConnInfo, subReportDocument);
private void SetDBLogonForReport(ConnectionInfo crConnInfo, ReportDocument crReportDocument)
        Tables tabelle = crReportDocument.Database.Tables;
        foreach (CrystalDecisions.CrystalReports.Engine.Table tabella in tabelle)
            TableLogOnInfo myTableLogonInfo = tabella.LogOnInfo;
            myTableLogonInfo.ConnectionInfo = crConnInfo;
            tabella.ApplyLogOnInfo(myTableLogonInfo);
Thanks
Teresa

Without trying to parse through all of your code line by line, you seem to be trying to set the database by connecting to the database directly and then you pass it a datatabe.  You should pick one or the other and try it.

Similar Messages

  • How to use the cgicmd.dat to specify a directory name for desname

    Hi folks,
    What I'm trying to do is use a command key to specify the directory for a file, specified via desname. Here's an example.
    cgicmd.dat
    custom_reports_dir: /some/directory/custom_reports
    Then I want to reference it via something like this..
    http://server:7777/reports/rwservlet?cmdkey=rpt_connect&destype=file&desname=custom_reports_dir/test.pdf&desformat=pdf
    Where in the above example, I'm trying to use the command key to specify a directory name, and then append a file name to it. It isn't working for me, is this possible to do? I figure since it's not an argument in itsself, it's being interpreted literally, rather than being substituted for the parameter.
    Thanks very much,
    -Adam vonNieda

    That depends on how you actually run your program in the first place. If you just use a batch file you could simply make the path to the javaw.exe relative (e.g. jre\javaw.exe �cp lib\myJar.jar com.MyClass). Or you could look into some third-party software that allows you to create installations packages for Java. I have used Zero G's InstallAnywhere before and they have support for you setting up their executables to use a bundled jre. I am sure all the other java install makers have similar functionality.
    Lance

  • View dimension hierarchy using the filter property of data form

    Hi,
    I created a data form where I want to show the dimension hierarchy. But when I am filtering the form using attribute dimension then the hierarchy is not being shown in the form.Is their any way so that I can use the filter property also and make the dimension hierarchy visible in the data form?
    Thanks.

    847833 wrote:
    Hi Endy,
    Thanks for your reply. I have used the "equal" function as to set that specific attribute as I am choosing the descendants function against the attribute dimension,it's showing error.Hi,
    What's the error ? You have to use a function, otherwise it will only display the member you picked.
    Actually in our dimension structure we have a 3 generation hierarchy and the attribute is only associated with the 3rd generation member. So we want to display the 3rd generation having the specific attribute "xx" wit the entire hierarchical structure in our data form.
    Can you please tell me if I have missed anything?
    Thanks.If you want to display the attribute value in the form, edit the form, go to the "Layout" tab, and click on your row. On the right side of the screen, you have a section called Display Properties. Check the box called Enable custom attributes, then check your attribute name. Save the form and you will have the attribute value displayed at the right of the member name.

  • Using the Suspensibility property of a Webdynpro application

    Hello Experts,
    I have  around 10 WDJ applications.All these applications are hosted on different iviews on portal.
    I use the portal navigation to navigate between these applications.I want to use the Suspensibility  property of the applications so that i dont have to reload them everytime they are called by other applications.
    My Question is : The Suspensibility  property stores the state of the application as it is. This will be done for multiple applications. Does anyone know where is this temporary storage done and how much of an effect will it have on the performance of the applications overall.
    Regards,
    Virag

    Hi Virag,
    You can use Suspend & Resume plugs for the same. Refer below SAP NetWeaver Library link & asoociated links.
    http://help.sap.com/saphelp_nw04s/helpdata/en/68/3aee42c4257176e10000000a1550b0/frameset.htm
    Hope this helps you.
    Kind Regards,
    Nitin

  • Problem in OOPs ALV using the BOX_FNAME property in LAYOUT

    Hello Guys,
    I am trying to use the property BOX_FNAME property in the LAYOUT of OOPs ALV, as a CHECKBOX for selecting the records and then processing the selected records.
    Also i need to implement the functionality of SELECT/DESELECT ALL.
    Below is the code i am using:-
    DATA : w_layo  TYPE lvc_s_layo.                    " Layout
    w_layo-box_fname = 'MARKE'.
    MARKE is a field used in internal table as CHAR01 field.
    But know when i select record on display, the internal table field MARKE is not reflected back with the values.
    Please suggest if i am missing something.
    Thanks in advance.
    Regards,
    Tarun Gambhir

    Solved by own, using method GET_SELECTED_ROWS of class CL_GUI_ALV_GRID.
    Regards,
    Tarun

  • Using the click property in a SWFLoader

    I'm using a SWFLoader to load a flash made button. I thought
    I would've no problem navigating from one screen to another by
    clicking on the SWFLoader, but the click property just doesn't seem
    to work, eventhough I'm using a model locator and methods that I've
    used several times before for navigation with no problem at all.
    Is there anything special that needs to be done in this
    case?

    I tried with a sample and it seems to work.
    Some points which might be worth checking....
    1. Have you tried a sample app and found it working ?
    2. Is the Flash SWF being loaded into a different
    SecuritySandbox ?
    3. If answer for 2 is YES, have you called
    Security.allowDomain() for the domain of the loaded SWF?
    More explanation here under the Event security section
    http://livedocs.adobe.com/flex/3/html/05B_Security_08.html#129093

  • How to use the FORMAT property of an account dimension

    Hi Experts,
    I tried my best but I just can't find any information about the format property of an account dimension. I know that it is a reserved one and I have seen something such as #,##0. In detail I want inc member to look like 1.000.000 and exp member  like -4.000.0000.
    This is probably a stupid question.
    Thanx in advance,
    Cora

    Hi Cora-
    These are Excel custom formats..please review the following link for detailed information:
    [Custom Number Formats in Excel|http://www.ozgrid.com/Excel/CustomFormats.htm]
    For your specific example:  ###,###,### for INC and  -###,###,### EXP should be sufficient.
    Regards,
    Sheldon

  • Export Dataview webpart using the listURL property

    I have a data view webpart (dataform) on a page. I have to package the webpart into a solution so I exported the webpart using the sharepoint designer but figured that the webpart is connected to a list by the list id. I wish to use list url instead of list
    id so that I can deploy it to new environment.
    I tried adding a list url parameter to the parameter bindings group but that didn't work..
     Any ideas on how to do this?
    Student For Life

    Design view is removed from SPD 2013, however if you have SPD 2013 you can edit the SP 2013 pages work on it, desing or whatever you want to you can do and then publish.
    You can choose to add data view, add your pagination all you can do in SPD 2010 and then publish it in you SP 2013. Take a look at this video
    http://www.youtube.com/watch?v=EdW6eHOO-uI
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Scan the mailbox Content using the exchange powershell commands (need urgent info)

    hi,
    Is there any way where in i can scan the mail content of each mailbox user and classify that these no of voice or video or text messages are there in user inbox using the powershell.
    My requirement
    1) is to collect the voice , video, text etc... messages for inbox of each exchange user. Is there any command that gives the type of message, text, voice, video, etc.?
    2) I am an administrator and i want to monitor the mailbox users and there content .Do we know whether ,this requires a login into the individual mailbox with the user credentials?
    Please reply me @ [email protected]
    Advanced thanks for your help...
    Thanks
    Shiva

    Use "search-mailbox" command to search the mailbox based on subject,date,attachement,sender etc...
    $users = Get-content "c\users.txt"
    To get the details only
    $users | SEARCH-MAILBOX –SearchQuery subject:"Payment_for_" -TargetMailbox "adminmailbox" -TargetFolder "queryfolder"-LogOnly -LogLevel Full

  • Can I sign on to use the free apps without credit card info?

    Can I sign on to use the free apps without giving a credit card? I am an older person without very much technical knowledge and received this mini ipad as a gift. I do not have an smart devices, just a laptop which I primarily use for music which I have downloaded from youtube and from various other freemusic sites. Can anyone help with any tips on how to use and get the free apps for "free". Hope I made this eay to understand. Thanks for any information.
    Paul

    I primarily use for music which I have downloaded from youtube and from various other freemusic sites.
    Just as a precautionary note: be very careful which sites you use to download your music from; if the site is offering something for free which costs money elsewhere it can quite often contain hidden additions (malware) or some other unwanted stuff.

  • Where has the bookmark property for specifying the icon gone?

    In FF3 if I selected a bookmark and its properties, I was provided a field where I could specify the location on my PC for the desired icon for that bookmark. This was particularly true for specifying the icons for the Bookmarks Toolbar. I have the TotalToolbar v1.9.1 extension installed, but I am not sure that that extension gave me that capability for FF3. In FF4 there is no such property for bookmarks to specify, or change, the icon. One step back.

    This issue is caused by an extension that isn't working in Firefox 4
    You can look at this extension:
    *Bookmark Favicon Changer: https://addons.mozilla.org/firefox/addon/bookmark-favicon-changer/

  • Tip: How to play a playlist one song at a time from iTunes on a computer using the checkbox property

    I would like to share a tip about how to play a playlist one song at a time from iTunes on a computer. The tip I am sharing is simple, but I was not able to find it in the iTunes Help. After searching on the internet I found the idea for this solution in a discussion in which this was presented as a frustrating problem rather than a desired behavior. This tip relies on the checkbox for each song in iTunes. For a song in a playlist to play automatically, the checkbox must be checked. To keep a song from playing in a playlist, simply uncheck it. Therefore, to keep all songs from playing automatically in a playlist, simply uncheck them all. Now you have a list of desired songs in a desired order but none of them will play automatically. You can play each one when you want to play it without having to search for the next song and without having to be at the computer to stop the playing after each song.
    Step by step:
    1. Create the playlist.
    2. Uncheck all of the check boxes in the playlist (In iTunes for Windows, ctrl click one of the check marks to uncheck all of the checkboxes at once) 
    3. Now double click (or select and press spacebar) a song to play it. It will stop when finished because there is no other song checked to be played next.
    4. If you want to change back to normal sequential play, ctrl click one of the check marks again to change all of the checkboxes back to the checked status.
    Based on some discussions I found while looking for a solution (including at least one in which the questioner got bashed about why anybody would ever want to do such a thing and in which the proposed solutions were things like creating one song playlists or simply press stop after each song), some may not understand why this would ever be desired.  Here's why I wanted to do it:
    I was responsible for playing a series of songs at a dance. I needed to stop after each song to have a transition time to allow me to introduce the next song and to give new dancers time to get onto the floor and other dancers an opportunity to leave the floor. Furthermore, I was also dancing and didn't want to have to spend time searching for the next song (which is why I wanted to create a playlist in advance with just the songs I wanted to play in the order I wanted to play them) and I wanted each song to stop after playing since I was not at the computer to press stop.
    I hope this will help others who have a similar need.

    Thank you! I put some self help hypnosis tracks to listen to on my iPod. I did not want to go to the next track automatically, I wanted to listen to them individually, one at a time. (If I fell asleep, I did not want to 'wake up' in the middle of a different track.) Your information helps me understand that I need to re-load this playlist onto my iPod from my  Mac computer, only first, I need to UNCHECK the boxes in front of each track so the iPod will STOP each time after playing the selected track. It is too bad that so many functions are not availabvle within the iPod, but that is probably why they can make it so compact.

  • How to use the visible property

    Hi all,
    Im trying to implement the page(view)which has 3 trays.
    Once the page is loaded ,I want to make only the first tray visible and other 2 trays should be invisible.
    Based on the users input on the 1 st tray, the 2nd or 3rd tray shud get enabled and visible to the user.
    Please let me know how to make the tray visibl after the user input.
    Regards,
    Nithya K

    Hi Nithya,
    Please create the context attribute for the visibilty type.  Once context attribute created,
    Select type <...> button >> Dictonary Simple Type >> Dictonary >> Local Dictonary >> type com.sap.ide.webdynpro.uielementdefinitions >> Visibility OR directly put type     com.sap.ide.webdynpro.uielementdefinitions.Visibility
    Then try to implement you logic for showing the 2nd or 3rd tray in the if loop. like
    if (<condition true>)
       wdContext.currentContextElement().set<your Attribute name>(WDVisibility.VISIBLE);
    else
       wdContext.currentContextElement().set<your Attribute name>(WDVisibility.NONE);  
    Then bind the visible properties in the Tray.
    Hope it helps
    Regards
    Arun

  • Using the property .Exists

    Hi Guys,
    Quick question as I've been playing in Powershell this morning.  I could have swore in the past, I was able to use the .exists property and return a True or False but for some reason .Exists returns nothing for me currently.  Here's an example
    function CheckSourceFileExists($path){
    try{
    $testpath = get-childitem -path $path -errorAction Stop
    return $testpath.Exists
    catch{
    return $_.Exception.Message
    I know there are other ways to return True/False, but I'm just trying to get it to work in this context.  Maybe it's not possible and I have to actually return test-path instead, just would be nice to utilize the error messages if possible :) 
    Thanks everyone.
    Ryan

    Get-ChildItem and Get-Item will both return the same types of objects.  (When the path is on the FileSystem provider, these will be FileInfo and DirectoryInfo objects, both of which have an Exists property.)
    The difference is in which of these objects are returned, and how many of them.  If you call Get-ChildItem and give it the path to an empty folder, you'll get back zero objects.  If the folder has 3 folders and 5 files, you'll get back 8 objects,
    and so on.  Get-Item, on the other hand, always gives you back one object (or throws an exception, if that path doesn't exist.)  If you pass it the path to a folder, the item will be the DirectoryInfo object associated with that folder.

  • Unable to use correctly the value property node in a re-entrant VI

    Hi everybody,
    I am using labview 6.1 and developing an application which call a reentrant SubVI. However when I use the Value Property Node (which I need : the use of local terminal isn't possible in my final application) in the re-entrant SubVI, i get the initial value of the control, not the current value !?
    Is there anybody to explain me why and how to solve this problem ?
    I have attached 3 VIs for a better explanation.
    Thanks.
    Attachments:
    Master.vi ‏9 KB
    Slave.vi ‏23 KB
    globales.vi ‏7 KB

    You just need to create a local variable instead of a property node to read the value of the control that was passed in. Popup on the control and select Create >> Local Variable. Or just wire the control to where you need it. Data flow is still working; Feroz just explained an idosyncracy of how property nodes work in reentrant VIs.
    BTW - I don't mean to turn this into a sales opportunity, but you might want to check out the VI Analyzer Toolkit. It reports the following for a reentrant VI that uses property nodes:
    "You are using an implicit property node in this reentrant VI. This can result in unexpected block diagram behavior, as a reentrant VI will occupy multiple data spaces but will maintain only a single front panel. You should consid
    er either making this VI non-reentrant, or eliminating the use of implicit property nodes."
    I'm not sure how many people would know what the message means, but they would be forewarned and hopefully check into it further (e.g. test with this specifically in mind).
    I filed a bug report to have this investigated further and at least documented better.
    Roy

Maybe you are looking for

  • Std Report to see Material doc. and FI doc.

    Hi all, I want a SAP standard report where i can see both the Material doc. as well as the FI doc. created against that in a single report. Please help. Thanks & Regards, Rajeev Kumar

  • No longer authorized to play items on iPod

    I have connected my iPod for the first time since upgrading to Snow Leopard 10.6.1 and to iTunes 9.0.1. I now get a message box saying that the computer is no longer authorized to play 54 of the songs that are on my iPod. I've found that I get the sa

  • Audio tracks not playing

    A really odd thing keeps happening to me. When I open my Logic projects it often doesn't play all the audio tracks. If I double-click a region and open it in sample editor I can play it from there but still it doesn't play the track in arrange. And t

  • Is there any possible way to retrieve a lost file?

    I have a MacBook Pro. I have been creating graphics with Flash, and the program shut down. Then it showed a recovered file, so I started to work in that. Then that disappeared and there is no trace of it. Is there ANYWHERE I might still retrieve it?

  • Universal Dock idiosyncracy?

    I like to use my iPod and an FM transmitter (Griffin iTrip) to broadcast to various radios in my house. I looked forward to using the iTrip along with Apple's new Universal Dock so I could also stop/start, and advance the songs at will with the Apple