Rodrigo B. de Oliveira's Q&A profile
SQL Server How to export report to word file ?
Hi all, After publish a report to Report Server, how can we export that report to word file I used to try Office Writer tool. This tool allows to export report to word file but the report must be created in Office Writer, not report that is created in Reporting Designer of Reporting Service. Is there any way to export report to word file I must tell you it is not easy for Word. In fact, it was very hard, but we did it. We wrote a rendering extension that exports to DOC, RTF and WordprocessingML. We managed to do that because we have a technology - Aspose.Words for .NET is a component for server-side document processing. It is a mature product, over 3 years, many customers, it provides an object model and compre ...Show All
Visual Studio compile error 45
can anyone explain this error pls: Error 45 The "GenerateResource" task failed unexpectedly. System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) at Microsoft.Build.Tasks.GenerateResource.NeedSeparateAppDomain() at Microsoft.Build.Tasks.GenerateResource.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) CPSApp Hi, This is already reported: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=94183 ...Show All
SQL Server Timeout exception during long running stress test
Hi, We have built two testing apps for sending and receiving files across the network reliably using SQL Express as the database backend. The apps seem to be working fine under light load. However during stress test, we always get the following exception: "System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." During stress test, both the sender and receiver are running on the same machine. Sender creates file fragments, store them in the sender database and then send out to the network. File fragments will be deleted from the sender database when the sender receives acknowledgement from the receiver. ...Show All
Windows Forms Flickering in ListBox
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me any feasible solution, i need to use a checked listbox which also has same flickering problem on resize. I can use [ DllImport ( "user32.dll" )] public static extern bool LockWindowUpdate( IntPtr hWndLock); to lock the update at ResizeBegin and ReSizeEnd but these events are not available with UserControl class. Is there any easy solution to remove this flickering when i resize my form. Thanks & Regards Nirdesh Dabas nobugz wrote: Are you using TableLayoutPanel ...Show All
Visual C++ extern "C" not working in 2005
Hi, I try to create a simple dll, native, standard libraries, no MFC, no ATL. No .def file. The following code build in VC++ 2003 created the dll with an exported function with name SetPowerUser . The same code in VC++ 2005 creates the dll and the exported function name is: _ SetPowerUser@4 . Can you figure out what is wrong with the code below cpp file: #include "stdafx.h" #include <shellapi.h> #include <msi.h> #include <msiquery.h> #pragma comment ( lib , "Msi.lib" ) extern "C" __declspec ( dllexport ) int __stdcall SetPowerUser(MSIHANDLE hInstall) { .... return ERROR_SUCCESS; } // SetPowerUser StdAfx.h: #pragma once #ifndef ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how i can remove error?
hello, my name is Surjeet Singh.when i debug following code i error that ContentLoadExpection was unhandled. how i remove this error surjeet_sidhu2007@hotmail.com using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; using Microsoft.Xna.Framework.Content; namespace ApplyAnEffect { public class Game1 : Microsoft.Xna.Framework. Game { GraphicsDeviceManager graphics; ContentManager content; Matrix worldViewProjection; Effect effect; VertexDeclaration cubeVertexDeclaration ...Show All
Smart Device Development HttpWebResponse close() hangs
There have been a few threads on this, but I can't find a resolution or workaround. The HttpWebResponse hangs on the third connection if you don't close it, or hangs on the first connection when you try to close it. public void Test() { HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url); HttpWebResponse response = (HttpWebResponse) request.GetResponse() ; Console.WriteLine("Trying to close stream"); response.Close(); Console.WriteLine("Stream Closed"); } if you comment out the Close(); you can get up to two connections. Anyone seen a workaround for this Thanks 1.0 or 2.0 if 2.0, have you tried applying SP1 http://msdn.microsoft.com/vstudio ...Show All
Visual Studio Express Editions I want VB to play around with files on my harddrive
I've watched some of the first intro-videos for VB Express 2005, and played around with some easy variables and buttons in VB. But I haven't seen anyhing yet that deals with filehandling operations. Most of my program-ideas involve copying/moving/renaming various files that already exist on my harddrive, but what section of VB deals with that I could imagine there would even be some premade stuff in VB concerning that, just as there are premade buttons etc. The more advanced videos mainly deal with stuff related to the web and databases, and I can't find anything about it either in the included helpfile for VB. Am I missing something obvious here Any comment on the above will be much appreciated. first of all thankyou for offering ...Show All
Game Technologies: DirectX, XNA, XACT, etc. simple projectile motion physics??
im pretty new to gamedev, so simulating physics is new to me too. i know the projectile motion formulas, im just having trouble applying them. is there any "tutorial" on projectile motion physics for XNA basically, someone suggested to do "scorched earth". im trying to get the hang of just some simple projectile before i apply it to a game. i know i should basically have to just enter the initial velocity vector and the angle. then have it passed to a function that gets the initial x velocity, and initial y velocity. also, im assuming that whatever i get for y-velocity should be negative as "up" is negative in the XNA graphics. then, after each update, it should find the current change in position for x and ...Show All
SQL Server Hotfix for SP1 didn't work. There is still no Select All option.
I installed SP1 on a box running SQL Server 2005. I was puzzled as to why the Select All option had disappeared on my multi-value parameters. I found out on on this message board that the SP1 install removed this option. I contacted Microsoft yesterday and after being on hold for over 75 minutes, I was asble to speak with someone who sent me an email containing a link to the hotfix download. I installed the hotfix, rebooted the server, and my reports still do not have the Select All option. Has anyone else had this problem I sent an email to the support rep I was in contact with at Microsoft but I was hoping that someone here might have some suggestions while I wait to here from Microsoft. Any thoughts would be greatly appreciated. Than ...Show All
Visual Basic vb.net string
Hi i have a project which automatic help the company to generate 4 years data into the excel privot table. my problem is the vb.net string not aford to store the query string completly......the query is really really long. Can microsoft people help me what is the best solution The visual basic "string" data type can hold 2 billion characters...if your SQL String is longer than 2 billion characters I would consider rewriting as a stored procedure and calling it by name ...but really 2 billion characters ... From MSDN: Visual Basic Language Reference String Data Type (Visual Basic) Holds sequences of unsigned 16-bit (2-byte) code points ranging in value fro ...Show All
Visual Studio Team System 405 Method Not Allowed using BuildStore object
I'm getting the following exception: System.Net.WebException: The request failed with HTTP status 405: Method Not Allowed. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.TeamFoundation.Build.Proxy.BuildStore.GetBuildDetails(String buildUri) when I try to run the following code as part of a build task: public static DateTime GetBuildStartDate( string buildUri, string serverUrl) { BuildStore store = new BuildStore (); store.UseDefaultCredentials = true ; store. ...Show All
Visual Studio Team System Using variables in scripts
Hello, I've been reading Gert's post about using variables in scripts ( http://blogs.msdn.com/gertd/archive/2007/01/08/variables-to-the-rescue.aspx ) and have been trying it out. I don't think it works. Here's the steps I followed: Created a new project Imported a schema Built the project [it was successful] Added a new blank script to the Post-Deployment folder Edited Script.PostDeployment to include my new (still blank) script Built the project again (still successful) Added the following line to my new script: :setvar drive "C:" Built the project again This time the build failed with the error: Error TSD164: Syntax checking failed : Incorrect syntax near :. So it seems to me that u ...Show All
Smart Device Development deploy with the .exe file
I have finished an application with c# .net cf 2.0 And I build it with the setting is "release" "any cpu", then I send the application's .exe to my user, and the exe file be in the application\bin\release . the user's handset is windows mobile 5 handset. Can the .exe run at the user's handset Is it right of my deploy way Please tell me, Thank you Hi, You can make you application appear in the program folder by: 1- double click your cab project , or the partialy blue file inside it, until the project window appears in the place where you write you code. 2- right click on the left colomn where there are some folders in a tree view. 3- choos ...Show All
Visual Studio Tools for Office 2 OWC with HTTP Connection in 1 ASP page, Session reset
I having a webpage which hold 2(or more) owc11 pivot table. Becuase it is an internet access project, so I use HTTP Connection for the owc to connect with the Analaysis Server. When I load this asp page, the web session will be reset/destroy, and I have to go to the login screen again. Any solution or workaround for this issue I'm afraid you're in the wrong forum :-) This forum concentrates on the VSTO technology, which doesn't cover OWC, controls or web pages. You might try in the OWC newsgroup . ...Show All
