User Profile

Collapse

Profile Sidebar

Collapse
Eleven
Eleven
Last Activity: Jan 19 '09, 01:00 PM
Joined: Mar 5 '08
Location: South Africa
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Eleven
    replied to Detect Acrobat Reader
    Thanks a lot Plater, I actually didn't think about doing it that way! It works perfectly!!!...
    See more | Go to post

    Leave a comment:


  • Eleven
    replied to Detect Acrobat Reader
    Thanks a lot Vekipeki!
    I just noticed now that my code pops up the message box for each element.. thanks once again, I'll try out your suggestions.
    See more | Go to post

    Leave a comment:


  • Eleven
    started a topic Detect Acrobat Reader

    Detect Acrobat Reader

    Hi,

    Got a problem detecting if Acrobat Reader is installed on a machine, would really appreciate your help.

    I've got a PDF Report that I export to a directory then open it with Acrobat Reader. I need to check if the PC has Acrobat Reader installed before I open it...

    I found this code but it's not working, i always get the messagebox even if the PC has the software installed.

    Code:
    string RegPath
    ...
    See more | Go to post

  • Eleven
    replied to Crystal Report code on WinForms
    Thanks a lot, I got it to work!
    See more | Go to post

    Leave a comment:


  • Eleven
    started a topic Crystal Report code on WinForms

    Crystal Report code on WinForms

    I've got a web page that I use to generate Crystal Reports, it works perfectly but now I want to do it in WinForms. I need you guys to help me out on the exporting to PDF, the ExportToHttpRes ponse won't work on WinForms...

    Code:
    private void btnCK2_Click(object sender, EventArgs e)
            {
                ReportDocument doc = new ReportDocument();
                doc.Load("...\RPT\CK2.rpt");
    ...
    See more | Go to post

  • Eleven
    replied to Convert VB Code to C#
    in .NET
    Thanks!

    I tried this and I get an "Identifier expected"error!

    Code:
    <% If (Session["PartnerLoggedIn"]) { %>Partner User logged in: <b><%=Session("PartnerUserName")%></b> - on behalf of - <%}%>Logged in as: <b><%=Session("user")%></b>
    See more | Go to post

    Leave a comment:


  • Eleven
    replied to Convert VB Code to C#
    in .NET
    The code's actually on an ASP page, want to put it on an ASPX C# page.
    See more | Go to post

    Leave a comment:


  • Eleven
    started a topic Convert VB Code to C#
    in .NET

    Convert VB Code to C#

    Hi,

    Can someone please help me convert this code snippet from VB to C#

    [CODE=VB]<% If Session("Partne rLoggedIn") Then %>Partner User logged in: <b><%=Session(" PartnerUserName ")%></b> - on behalf of - <% End If%>Logged in as: <b><%=Session(" user")%></b>[/CODE]

    Thanks!
    See more | Go to post
    Last edited by Eleven; Aug 15 '08, 08:33 AM. Reason: left out something

  • Eleven
    started a topic C# WEB: Submit textbox value as hex
    in .NET

    C# WEB: Submit textbox value as hex

    Hi,

    I'm trying to get a value from a textbox then save it to the database as a hex number. Here's what I have so far, but its totally wrong.. it converts the value I enter in the textbox to a hex number, but i want it to submit the exact value that's in the textbox.

    [CODE=C#]
    DAL.CashTrack.T erminals addTerm = new DAL.CashTrack.T erminals();
    addTerm.FkTermi nalKey = Convert.ToInt64 (txtTermKey.Tex t, 16);...
    See more | Go to post

  • Eleven
    replied to C#: Refresh image on page load
    in .NET
    Thank you, i'll try it out....
    See more | Go to post

    Leave a comment:


  • Eleven
    replied to C#: Refresh image on page load
    in .NET
    Plater, could you please explain how i'd go about making the page not chached? I don't know much about that.

    Thanks!...
    See more | Go to post

    Leave a comment:


  • Eleven
    replied to C#: Refresh image on page load
    in .NET
    Here's my HTML Code, i did specify the ImageUrl attribute

    [CODE=HTML]
    <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" >
    <tr>
    <td align="left" style="height: 50px; padding-left: 4px; border-bottom: #cccccc 2pt dotted;">
    <asp:Image ID="SmartecLogo Image"...
    See more | Go to post

    Leave a comment:


  • Eleven
    started a topic C#: Refresh image on page load
    in .NET

    C#: Refresh image on page load

    Hi everybody,

    I'm trying to load a different logo depending on who's logged in but the code doesn't seem to be working, well, it only works after i've rebooted my PC. Even when I log out it doesn't show the image its supposed to show for an un-authenticated user.
    I'm guessing its something to do with refreshing the page.. but even when I manually refresh the page it doesn't work.

    Hope someone can help me asap,...
    See more | Go to post

  • Eleven
    replied to C#-WEB: Selected Value in User Control
    in .NET
    [CODE=SQL]
    ALTER PROCEDURE [dbo].[spGetTerminalFo rBatch]
    (
    @Terminal VARCHAR(8)
    )
    AS


    SELECT DISTINCT TerminalId
    FROM vwDepositsByBat ch
    WHERE TerminalId = @Terminal
    ORDER BY TerminalId
    [/CODE]

    I wrote a new SP but I'm not really sure what to edit on my C# code
    See more | Go to post

    Leave a comment:


  • Eleven
    started a topic C#-WEB: Selected Value in User Control
    in .NET

    C#-WEB: Selected Value in User Control

    Hi everybody!

    I've got a User Control "SelectBatchByT erminal", that has two dropdown lists, "TerminalDropDo wnList" and "BatchDropDownL ist".

    Code:
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    ...
    See more | Go to post

  • Eleven
    replied to Count Subquery
    There is already a fkCanisterId in the CanisterTrackin g table that matches the CanisterLongID in the Canisters table, i just didn't think about using that.
    I didn't design the database, so i'm also noticing some things now....
    See more | Go to post

    Leave a comment:


  • Eleven
    replied to Count Subquery
    Thanks Amit..

    Tried it and the count is 9814 for all the records, that can't be right.

    I made a couple of changes to the code coz i kept getting errors
    [code=sql]
    SELECT CanisterID, CanisterTTNum, COUNT(TerminalI D) AS Count
    FROM (SELECT c.fkCanisterLon gID AS CanisterID, c.CanistersTTNu m AS CanisterTTNum, t.TerminalId AS TerminalID, ct.TrackingDate Time
    ...
    See more | Go to post

    Leave a comment:


  • Eleven
    replied to Count Subquery
    I have 3 tables, CanisterTrackin g, Terminals, and Canisters.

    CanisterTrackin g:
    ------------------------------
    fkTerminalID
    TrackingDateTim e

    Terminals:
    ----------------------
    fkTerminalKey
    TerminalId
    fkBankId

    Canisters
    -------------------
    fkCanisterLongI d [Dallas Number]
    CanistersTTNum
    fkBankKey

    Code:
    SELECT
    ...
    See more | Go to post

    Leave a comment:


  • Eleven
    started a topic Count Subquery

    Count Subquery

    Hi everybody,

    I hope someone will be able to help me out, i'm quite new to databases.

    I've got 3 tables, check the image below.

    I've created a view, now I want to have another one that will use the current view to show all canisters that have been through more than one terminal. I know i need to have a COUNT somewhere but I'm not really sure how to go about doing it.
    This new view should contain...
    See more | Go to post
No activity results to display
Show More
Working...