How do you print a dgml file? - visual-studio-2017

I've got a dgml file created in Visual Studio 2017 that contains a schema for a database.
We refer to this regularly in our team so I want to print it out.
How can I do this?
I've tried the File->Print menu, but it is grayed out.
Also I've tried using Edit->Copy Image, but when I paste it into a third party image editor (that can print) the resolution of the copied image is so low that I can't read the text.

My workaround for now is to use [Share] [Export to Portable XPS...], then print the XPS document.
It doesn't work for complex DGML files, though. I sent a bug report to Visual Studio Developer Community. Feel free to upvote there.

Related

Extracting an an image (JPG or PNG) from the PE

First of all I have done a lot of research on how to use resources and I cannot find proper documentation or manage to make it work so please do not link documentation without explaining (I am using Visual Studio 2015).
The problem is the following I would like to extract an image (JPG or PNG) that is in the PE.
I found 2 approaches:
Using resources but I can't seem to find documentation for PNG files and on how to properly declare the resource ID.
Converting the image to a hex array and copy it to a file, this solution isn't working because Visual Studio simply doesn't allow me to paste the array (maybe too big?) And just crashes. Modifying the file directly in the project with another editor doesn't seem to work either it just reverts back for whatever reason.
I don't mind the solution to use but none is working right now.
Ok after a few more hours of researches I found this and it seems to work.
Posting it in case someone has the same problem :
https://social.msdn.microsoft.com/Forums/en-US/7d753874-2fed-4db7-8135-4e4d499bac99/how-use-rcdata?forum=Vsexpressvc

Visual Studio 2017 (15.3.1) keeps hanging/freezing

I have recently installed Visual Studio 15.3.1 Community Edition (although I suspect this affects all editions). When doing actions such as
closing SQL .sql file tabs
copying or renaming files
other actions which I can't pinpoint
Visual Studio will freeze or hang for a few seconds or permanantly. It sometimes displays "(Not Responding)" in the title bar, but not always. This is getting really frustrating.
It seems like the Visual Studio feedback system is at fault. Turning it off solved my problem.
Open Visual Studio
Navigate to Help > Privacy > Privacy Settings
Select the "No, I would not like to participate" radio button and click OK
Hopefully whatever bug is causing this issue will be fixed soon and I'll happily participate in the feedback program again!
See this issue posted a lot on the MS forums.
I struggled with it for a while. When editing XAML files, it would always freeze and hang.
Tried many solutions that didn't fixed it. Then, I found the solution that did fix it for me.
I made two changes at the same time, so I can't say for sure which one solved it, but I can guess.
First change, which probably isn't the fix, is that I added the registry keys from this page. They were missing on my system. Page has a lot of detail, but having those keys set properly can't hurt. I noticed in Process Monitor that it was missing on the following regkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup\CachePath
Second change I made, the one I'm guessing solved the issue, was deleting the 17k+ ".TRN" files inside the following directory:
%LocalAppData%\Microsoft\VSApplicationInsights\
On my computer they were in something like the following:
C:\Users\Michael\AppData\Local\Microsoft\VSApplicationInsights\vstelXXX_SOMEGUID
Going back to check now, and after three-or-so hours of work there's another 475 files in that folder. It's producing about four or five .TRN files a minute, all with encrypted data inside. Not going to speculate as to the purpose of it, but I doubt it's anything good or useful. Deleted all those, and the XAML editor in VS now works fine, or at least as well as it ever did. No more 30+ second hangs on a modern twentysome core workstation.
In the recent update of VS 2022, the program suddenly starts freezing (randomly) and the fix for me was to turn off inline hints (the thing that pops up when you double click Ctrl key).
I'm using VS for C++ so I turned it off for C++ specifically
Go to the Tools menu tab -> Options

Item Templates in Microsoft Visual Studio for C++

I've tried about seven times to create an item template following the exact instructions on the microsoft website but I have been able to get it to work. After I export my template, it doesn't show up when I try to create a new CPP or Header file. Why is this?
Here (http://imgur.com/a/r6Nku) is a image gallery of my EXACT steps. My apologies if this is not the correct board for such a question, but the MVS support is frankly useless.
Edit: Not sure why adding the tags "visual studio" is forbidden for users with less than 1500 reputation. Maybe a mod can correctly tag it.

Commit C++ Intellisense suggestion with space bar in VS 2013

I have recently been exploring C++ some after using C# exclusively for quite awhile. I'm using Visual Studio 2013 and the one thing that is bugging me to death is the inability to commit an Intellisense suggestion by pressing the space bar. I have tried to edit the commit character list in Options -> Text Editor -> C/C++ -> Advanced to accept the space bar but so far I've had no luck. Coming from C# this is very aggravating. Does anybody know if it's possible to make such a change? I know I can use Tab or Enter, but in my opinion using Space is far more fluid.
Any information would be greatly appreciated.
UPDATE: Space seems to commit some suggestions but not others. if I type "std::stri", it commits "std::string". Unfortunately, Intellisense won't commit anything created by me or even common keywords. It just adds a space after what I already typed.
Further to my comment on your question, I have installed the trial version of Visual Studio 2013 (Ultimate), and can confirm that space bar does work to complete IntelliSense suggestions. Combining all comments, it would appear that it works in the following versions:
VS 2010
VS 2012
VS 2013
Here is a screenshot of my IntelliSense settings located at Tools > Options > Text Editor > C/C++ > Advanced:
As a last resort you may want to try changing all your settings back to default, as suggested in this answer:
Tools > Import and Export Settings > Reset all settings
UPDATE: After reading JoshC's comments, I have experimented a bit more and I get the problem too. It appears to be related to whether or not the item you are trying to autocomplete is a member of a type or namespace. If it is (e.g. std::string) then space will work. If it is not (e.g. void) then it will not work (but for some reason, tab will work). As per this link, you can manually invoke the "List Members feature" by pressing CTRL+J in which case on a blank line it will include items which are in the global namespace - however this is clearly not a practical solution.
I have no idea why it discriminates between space and tab in this way. If anyone is aware of a workaround please let me know and I will edit this answer again.
The following would seem to imply that there is no solution for C++:
http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2656132-support-committed-by-pressing-the-space-bar-in-c
When using Visual Studios 2012 for coding in C++, how do you autocomplete code selected in IntelliSense? (see comments)

Tips on debugging copy and paste into PowerPoint 2010

I have a custom application in C++ that has been used to successfully copy-and-paste an object from the application into MS Office 2003 and 2007 (Word, Excel and PowerPoint). The object opens in our own custom ActiveX control.
Now with Windows XP and PowerPoint 2010, nothing happens on the cut-and-paste. I have tried turning off the smart copy/paste to no avail. Copy/paste works with Word and Excel 2010.
Do you have tips on how to debug this?
Are you just pasting to PowerPoint or are you pasting to an object in PowerPoint? Word and Excel differ in that there is always a selection object (the cursor) - but PowerPoint doesn't have one unless you specifically specify one (if you do this manually, PowerPoint itself will create an object if nothing is selected)