Been using it for a while and started to love the function. One colleague of mine asked me how I did it. Thought it would be worth a post over here:
Using Shortcut keys
Ctrl-M, Ctrl-O will collapse all of the code to its definitions.
Ctrl-M, Ctrl-L will expand all of the code (actually, this one toggles it).
Ctrl-M, Ctrl-M will expand or collapse a single region
P/S: The menus for expanding and collapsing code can also be found under Edit->Outlining
Keywords:
- visual studio 2010 auto expand regions
- collapse region visual studio keys
- vs 2010 collapse all
- vs 2010 auto expand
- Visual Studio expand all
- visual studio 2010 collapse all code region
- uncollapsed definitions in visual studio
- how to auto fold all in visual studio 2010
- expanding comments in vs 2010
- vs2008
Written by admin on January 22nd, 2010 with no comments.
Read more articles on Knowledge Base and Personal and Programming.
Was facing some problem in printing the custom paper sized crystal report which is meant for label. During development, the report shown correctly and perfectly nice. However, upon implementing to client’s server, the report is loaded onto a different sized paper (other than the customized one). A little research here and there with trial and testing, manage to get the crystal report working. An additional codes is required and below is the functional code:
Private Sub reportPrinterSEtup()
Dim doctoprint As New System.Drawing.Printing.PrintDocument()
doctoprint.PrinterSettings.PrinterName = “Microsoft XPS Document Writer” ‘(ex. “Epson SQ-1170 ESC/P 2″)
For i = 0 To doctoprint.PrinterSettings.PaperSizes.Count – 1
Dim rawKind As Integer
If UCase(doctoprint.PrinterSettings.PaperSizes(i).PaperName) = ucase(“LABEL”) Then
rawKind = CInt(doctoprint.PrinterSettings.PaperSizes(i).GetType().GetField(“kind”, Reflection.BindingFlags.Instance Or Reflection.BindingFlags.NonPublic).GetValue(doctoprint.PrinterSettings.PaperSizes(i)))
crReportDocument.PrintOptions.PaperSize = rawKind
Exit For
End If
Next
End Sub
The doctoprint.PrinterSettings.PrinterName requires a valid printer name which exist in the hosting site. I’ve used “Microsoft XPS Document Writer” as it seems to be bundled together with Windows. The “LABEL” value will have to change to the name of custom papersize created. Note that the values are case sensitive.
Keywords:
- PrintOptions PaperSize
- Crystal report custom paper on host
- setting paper size in crystal report using vb net 2010
- set paper size crystal report in code
- PrintOptions PaperSize crystal report
- issue with microsoft xps document writer crystal reports
- custom paper size crystal report
- crystalreport printoptions papersize = bartender in asp net
- crystal reports vs 2010 custom paper size rawkind
- crystal report printout
- crystal report PrintOptions PaperSize
- crystal report paper size custom
- crystal report Microsoft XPS Document Writer
- crystal report custom paper size win 2008
- crystal report custom paper size on server
Written by admin on January 21st, 2010 with no comments.
Read more articles on Knowledge Base and Programming.