Software Development Network Logo
  • Visual Basic
  • Audio and Video
  • Visual C++
  • VS Team System
  • SQL Server
  • Game Technologies
  • .NET Development
  • Visual C#
  • Windows Vista
  • Visual FoxPro
  • SharePoint Products
  • IE Development
  • Microsoft ISV
  • Smart Devicet
  • Windows Forms

Software Development Network >> ogtr's Q&A profile

ogtr

Member List

JamesJ
Vaish
Blast
Oliwa
JosB
KjellSJ
Andrew D
Abhayc
AndyPham
dcube9
EtherealSky
senthil_palraj_e81a78
j_o_h_a_n_n_e_s
rebeccat
dragoncells
Joseph Geretz
Tryin2Bgood
Zapp
Peter Ritchie
tr123
Only Title

ogtr's Q&A profile

  • SQL Server Problem rendering Reports with sub-reports to CSV

    Hi, all. Hope all is well with you. I have a Q re Reporting Services, hope someone can help me out. My setup: SQL Server Reporting Services 2000 SP 2, running in W2K3, Visual Studio 2003. I have a report made up of a few sub-reports, stacked on top of each other. When I render the main report in Report Manager (HTML), the sub-reports comes out on top of each other as designed in the Layout, similarly when I export it to PDF. However, when I export the main report to CSV, all of the sub-reports come out next to each other, rather than on top of each other, as originally designed. Does anyone know how to overcome this problem Thank you very much. Cliff. ...Show All

  • Visual FoxPro Printing directly to LPT port.

    Hi everyone; I have 2 dot matrix printers installed on a win98 machine. I can successfully print from other machines to the printers on the win98 machine by issuing: set printer to \\win98machine\invoices or set printer to \\win98machine\reports The problem is that I can't find a way to print to these printers from the win98 machine itself. The above set printer command won't work. Neither would set printer to LPT1: or set printer to LPT2: They are simply disregarded and the printer is still the default windows driver. Any ideas would be greatly apreciated. As always - thanks. Cetin; Set printer to name will not print direcly to the port. It wo ...Show All

  • Visual C++ how to convert CString to const char *

    hi, i have one function which returns CString object. i need to pass that return value to another function which accepts const char * i should not change any of the function signature when i try to convert from CString to const char * it is giving error message saying it is not possible is there any way to convert CSting to const char * plz help me thanks in advance is there any way to convert CSting to const char * Yes. There is a LPCTSTR operator defined for CString. const char* is LPCSTR. If UNICODE is not defined LPCTSTR and LPCSTR are the same. Your code should look like this: CString str; const char* cstr = (LPCTSTR)str; however, I would put it li ...Show All

  • .NET Development how do I code the following app.config settings programmatically

    <configuration> <system.diagnostics> <sources> <source name="System.Net"> <listeners> <add name="System.Net"/> </listeners> </source> <source name="System.Net.Sockets"> <listeners> <add name="System.Net"/> </listeners> </source> <source name="System.Net.Cache"> <listeners> <add name="System.Net"/> </listeners> </source> </sources> <switches> <add name="System.Net.Sockets" value="Verbose" /> <add name="System.Net.Cache" value="Verbose" /> </switches> <sharedListeners> <add name="System.Net" type="System.Diagnostics.Tex ...Show All

  • Visual C# Write text over images...

    Hi, How can I write a text over a image, defining the position of the text... Like I have a picture of a man holding a whiteboard and inside it I want to write "Enter"... I have the coordinates already... Thanks Graphics Manipulation primiarly starts from the Graphics object. void WriteText( String input, String output, String text, Int32 x, Int32 y) { Bitmap TmpBitmap = new Bitmap (input); Graphics TmpGraphics = Graphics .FromImage(TmpBitmap); TmpGraphics.DrawString(text, new Font ( "Arial" , 23.0f, GraphicsUnit .Pixel), new SolidBrush ( Color .Red), x, y); TmpBitmap.Save(output); TmpBitmap.Dispose(); } ...Show All

  • Windows Forms "DataGridView.Item" Problems

    I am currently writing an application that reads information from three tables in a SQL 2000 database. I have set up the data connection in Visual Basic .NET 2005 and I have three DataGridViews on the form to display the information. From there, I want to go through each entry and pull out certain cells that match the right criteria and list that information in a treeview. It seems, though, that once I get an item greater than the maximum number for an integer, the program crashes. At the same time, though, if I change my procedure to use long variables, the statement throws an error due to mismatching data types. Any suggestions Thanks. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using VertexBuffer with Z-Buffer

    I have a primative which I am rendering from a vertex buffer (positioned, colored, textured), among some meshes. All of the meshes seem to work fine with the Z buffer, texutre transparency works fine... except for when I make my primative transparent, you can only see the cleared background, and none of the meshes behind it. Just to give you an idea, here's some code! (obviously not all in the same method). frontVertices = new VertexBuffer ( typeof ( CustomVertex . PositionColoredTextured ), 4, Device, Usage .WriteOnly, CustomVertex . PositionColoredTextured .Format, Pool .Default); CustomVertex . PositionColoredTextured [] vertices = frontVertices.Lock(0, LockFlags .None) as CustomVertex . PositionColoredTextured ...Show All

  • Visual Studio Express Editions Why would I be getting these errors?

    It seems strange to this newbie why these errors are popping up in a Windows .h file. Can someone enlighten me ------ Rebuild All started: Project: Driver, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'Driver', configuration 'Debug|Win32' Compiling... driver.cpp D:\WINDDK\3790.1830\inc\ddk\w2k\ntddk.h(7944) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\WINDDK\3790.1830\inc\ddk\w2k\ntddk.h(7944) : error C2146: syntax error : missing ';' before identifier 'InterruptTime' D:\WINDDK\3790.1830\inc\ddk\w2k\ntddk.h(7944) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int D:\WINDDK\3790.1830\inc ...Show All

  • .NET Development Object Methods not available using .NET Remoting

    Hello: I'm taking my first stab at .NET remoting and I'm running into some issues.First of all, here is the object that I would like to be made available remotely: namespace MyClass1 { public class MyClass { public int Add( int a, int b) { return a + b; } } I compiled this class into a library that my Remote server (host) references (The assembly is not in the GAC, just on a local directoy). Here is the code that I have for the host. (I've removed all the using statements, but all relevant namespaces are referenced, and added to the project as a reference) namespace RemoteHostApp { class Program { static void Main( string [] args) { ChannelServices ...Show All

  • Gadgets Version upgrade for gadgets

    Hi! I am just about finished making a gadget - and I'm making the gadget detect if there is a newer version out there. So I compare the System.Gadget.Version and another version number coming via a XML, and if the xml file shows a newer version, the gadget notifies the user about the new version and gives her a link. Now, I have been testing this and there are some shortcomings. Let's say I'm currently running a gadget called mygadget.gadget, and its in my localapp/sidebar folder (since its installed) and it has version no. 0.9. Little later there is a newer gadget with 1.0 version and the xml notifies the 0.9 gadget about the new version. The user clicks the link (that just appeared) and I get the Install dialog... (i did set up the m ...Show All

  • Windows Forms How I Can Justify Text in Rchtextbox?

    How I Can Justify Text in Rchtextbox Take a look at the SelectionAlignment Property in the RichTextBox I am guessing perhaps you need to select the text you want to "Justify" then use the SelectionAlignment property to justify the text (Left, Right, Center)   Example:   this .richTextBox1.Select(0, 4); this .richTextBox.SelectionAlignment = HorizontalAlignment.Center;   Of course you would have to implement your way of selecting the specific text you wish to justify   Hope it helps! :-) ...Show All

  • Windows Forms Make Form modal to external hWnd

    In a screensaver, when the Options button is clicked in control panel, it calls the screen saver with the command line argument /c:1234567 (for example) where 1234567 is the window handle of the control panel dialog that my Options form needs to be made modal to. How can I do this I tried Control.FromHandle but it returned null. You have to create a class that implements IWin32Window: using System; using System.Windows.Forms; public class Window : IWin32Window {   private IWin32Window _Handle;   public Window(IntPtr handle)  {   _Handle = handle;  }     public IntPtr Handle  {   get { return _Handle; }  } }   You can then do thi ...Show All

  • Visual Basic How do i display error message in one message box

    hi, i have question about display all the error message in one message box. The application that i am creating will allow user to enter for example first name, last name, email address, their relationship status. The fields for different textbox could contain different errors, for example name textbox could not contain symbols and email address must contain @ sign. if errors occur then message box should pop up after submit button click. now the question is how do i put all the error message in one message box after submit button is clicked. thank you Sry, i think you misunderstood the question. I already did the parts on how to check the error enrty. the problem is that now i want to display all the error m ...Show All

  • Visual C++ Visual C++ Bitmaps and Graphics

    I would first like to appologise if this thread /question is in the wrong section I am working on an application that has a large bitmap / graphic imported onto it. This graphic is going to be the user interface. The graphic contains a small number of buttons which obviosly I cannot do anything with at the moment because they are part of the bitmap. Each button has a circle that is supposed to be an LED. So when the button is pushed the LED lights, and when it is pushed again the LED switches off. What I have decided to do is create a Panel for each of the areas where a button is meant to be; and have 2 graphics for each of the buttons: one with a dark green circle, the other with a light green circle. I will (hopefully) chang ...Show All

  • SQL Server Recovery Model to be used for a Data Flow Task

    Hello there I have a SSIS 2005 DTSX Package which has several Data flow tasks which directly dump data between tables from 2 different databases. Suppose if my destination database is named, DestinationDB, what recovery model should I select for this database so that my ldf file size does not explode I want to keep the ldf file as small in size as possible. Currently I have used Simple Recovery model, and the ldf file size goes to around 80 GB. (Inserting around 200 million rows) Will Bulk Logged model be a better option Also what does a SSIS 2005 Data flow task use internally (Insert operation or some sort of Bulk Insert between DBs) Please help. This probably isn't the correct forum for yo ...Show All

©2008 Software Development Network