Answer Questions
Vile A4 paper size with winforms reportviewer
Hi, Ive searced the web and found only a few dead ends, so i thought i'd ask in here, hope its the correct place! i have created a report that will use a localreport on a winforms app, the report works fine, however when i try to print it, it is always set to letter size paper, how do i change the print preview to be A4, and set the margins i have set the report size in the report, but it seems to make no difference. Regards, Russ You don't. You use it instead of putting ReportViewer on a form. You can either print directly or have it show a preview depending on which method you invoke. Create an instance of EmbeddedReport. Create report data sources as you woul ...Show All
Kujo1987 (( Updating Table Of Contents ))
--(( Updating Table Of Contents ))-- Hi Friends, 1. i have a Table of Contents (TOC) in a .dot file which i would be editing using Mail Merge function in C#. I would like to know of any method to update the table of contents. The command to update the TOC in macros is WordBasic.UpdateTableOfContents 2. Moreover, i need to format the TOC. Can some one tell me the syntax for Range selection to point to the TOC. -Amrish Had actually got the answer. Its (ActiveWordDocument).TablesOfContents[1].UpdatePageNumbers(); to update the TOC & (ActiveWordDocument).TablesOfContents[1].Range.Select() ; to Select it. -Amrish Hi Amrish I'm not sure I understand everything you're asking, but it is clear that this question does not revol ...Show All
RobC2k6 UserControl/HostedControl Errors (newbee to CCF)
Hi, Firstly, I am totally new to MS CCF. I went on a 2 day training course just before Christmas last year - so its all new to me. My application started its life as a .NET user control, which I changed as shown in the MS CCF course notes and Developer Documentation to be a HostedControl. The control is simple, you input an Account ID, click Search, and it calls a couple of SQL stored procedures and populates databound fields and a DataViewGrid. This works fine when using the control in a simple win form app which references the control. Now comes the bit where I am having difficulties. I should mention I am using a pre-built (i.e. not by me) CCF environment. I have used the Admin Console on our CCFDC to create an instance of m ...Show All
ShawnSantana Launching sandcastledocs.com wiki site
Molly Bostic, program manager, MSDN Wiki and a member of my team helped me last night to setup Sandcastledocs.com sharepoint wiki website. Thanks Molly J It’s available at http://www.sandcastledocs.com with links to Sandcastle download, blogs, forums ..etc. The wiki editing is only availabe for Microsoft employees at this time. Please let me know what additional information you would like to see at this site. Cheers. Anand.. A couple of the links at http://www.sandcastledocs.com/Wiki%20Pages/Sandcastle%20GUIs%20from%20Community.aspx try to log into Outlook Web Mail rather than go to the intended targets. Eric Thanks Eric. They are fixe ...Show All
DodgingRain Missing and incomplete MSHelp attributes
It seems that the MSHelp attributes aren't generated correctly. The namespace and type name are missing. For example, the following attributes are generated for a hypothetical Namespace.Type.FieldName field: <MSHelp:Attr Name="AssetID" Value="F:Namespace.Type.FieldName" /> <MSHelp:Keyword Index="A" Term="F:Namespace.Type.FieldName" /> <MSHelp:Keyword Index="K" Term="FieldName field"></MSHelp:Keyword> <MSHelp:Keyword Index="K" Term=" .FieldName field "></MSHelp:Keyword> <MSHelp:Keyword Index="F" Term="FieldName" /> <MSHelp:Attr Name="TopicType" Value="apiref" ...Show All
Kartit Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50}
We has following error message after we move our program to production server: Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800700c1. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.BadImageFormatException: Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800700c1. Source Error: Line 28: Line 29: Try Line 30: Dim oRpt As New ReportDocument() Line 31: Line 32: ...Show All
karthik G Debug VB6 Application
Hi, I have a VB.net application (Visual Studio 2005) using VB6 DLL. I calling some methods/functions into vb.net and making use of them.. How to debug VB6 code when it is called from vb.net The option i tried is, I "Enabled Unmanaged code debugging in VB.net Project Properties". and opened VB6 Application in Run mode and assigned Break Point.. But no use Suggest me. Thanks This would require the compiled VB6 dll to have been compiled with symbol information - is this the case I believe then the only thing that would work is a breakpoint on a method, I don't think line level breakpoints will work. ...Show All
Bakerboy60 Documentation bugs
The MSDN Product Feedback Center has moved to "Connect". It might be just me, but I could not find a place to submit the bug/suggestion. Anand, could you post a new link for bug/suggestion submittal ...Show All
Jason Weiler ThisWorkbook_Open() triggers twice...
Hi, I am building VSTO application for Excel 2003 using framework 1.1 In public class OfficeCodeBehind theres a VSTO function protected void ThisWorkbook_Open() that triggers when the excel sheet opens. In this function I am writing some initialization code but I just found out when application starts, this method gets called twice. I dont call this function, this is VSTO's internal function.... I dont know why is this happening and how to stop this event triggering twice. Where should I write initialization code In initialization I instantiate my own objects and stuff... Is ThisWorkbook_Open() a good event to write initialization code Thanks, You might try writing your initialization code in the This ...Show All
Agent00 Enumerating the IVsTextViews
I'm trying to listen to text changes in all IVsTextViews. I've figured out how to listen for register/unregister events, but if my addin is loaded after VS starts, there may be IVsTextViews that are already registered, and I never get an event for them. I figure enumerating the existing views with IVsTextManager.EnumViews should do the trick, but for some reason I can't seem to get it to work. There are no docs, but the IDL file has the following function definition in IVsTextManager: // Enumerate views. Pass NULL for pBuffer to get all views. HRESULT EnumViews ([in] IVsTextBuffer *pBuffer, [out] IVsEnumTextViews **ppEnum); When I try the following: ServiceProvider sp = new ServiceProvider ((Microsoft.VisualStudio.OLE.Interop.IServiceProvi ...Show All
Sniper167 Can't install VS 2005 SP1 on Vista Ultimate
I can't install VS 2005 SP1 on a Vista Ultimate machine. When downloaded and "installed" via Windows Update, I get "Code 64C", and no further explination. If I download and try to install the fix directly (run as administrator) I eventually get an error telling me that the source code does not exist. All other Vista Ultimate updates have been applied successfully. I'm also running Office 2007 Ultimate. I can't un-install VS 2005 Pro from Add/Remove programs because it can't find c:\program files\microsoft\visual studio 8\vs_setup.msi during the VS 2005 maintenance mode program. I tried to copying vs_setup.msi from the install DVD to the aforementioned subdirectory, but I still got the same error message. I g ...Show All
ap231 Is there any type of context available at time of IAuthorizationPolicy evaluation?
I've been doing some work with adding custom context to our WCF web services. I've successfully added context to the operation and instance context, but now I'm doing some work at the IAuthorizationPolicy level and finding out that the contexts that I've hooked so far (i.e. operation context and instance context) are not available yet at this point. First, is there a context that flows all the way through all these layers of a WCF request Second, I cannot find any good documentation on what the life cycle of a request looks. If I could find that I would probably be able to figure the rest out on my own. TIA, Drew I think the disconnect we're having is that it's not just one specific area of the req ...Show All
ACCOUNTINGONLINE.US dynamic group
Hi everybody ! how can create grouping in runtime !!! this example below showing how to create dynamic table but i need to select some of filed to group by them. http://www.gotreportviewer.com/DynamicTable.zip i have second question is the RDL available in VS2003 with framework 1 . thanks. Dynamic grouping -> Most of the properties of the report items are expression based (ex. Hidden, Size, Table column header text, etc). You can generate the table and define some grouping parameters. Then in table, add a new group (you can do this by code) and in the expression group you can use the parameter to get the field. ex.: group expression = Fields!ProductName.Value can be write something like this: gr ...Show All
Warren Trotter output file path from a build
I can complie a project using IVsBuildableProjectCfg.StartBuild method. But I am not able to locate the interface (method) that would give me the output filepath. I would like to know the full path of the output. Thanks. From your question it is not clear whether you have your own project type using the MPF Project base classes or you are getting the interface from one of the language projects (C#/VB). Assuming it is not you own project I would use the automarion model to get to the output path for the active configuration. e.g. EnvDTE.Project project = .... EnvDTE.Configuration activeConfig = project.ConfigurationManager.ActiveConfiguration string outputpath = activeConfig.Properties ...Show All
_hunter Relative bindings for nested UserControls
Hi all, Apologies if this is a stupid question, but I've trawled the forums and net for an answer, and just can't find what I'm looking for. I've created a XAML UserControl in another library that has binding defined for its element, however the DataContext for that control is specified in parent XAML form that is hosting the control. I'm using a XMLDataProvider as a test harness and I'm specifying the DataContext in the hosting XAML page (lets call this Form1) and then I'm creating an instance of the UserControl in Form1, then wanting to shift the DataContext to a contained element in the binding XPath. XML Data: < Items > < Item > < Number > 10001A </ Number > < BillTo > < Contac ...Show All
