How to access visio drawing (.vdw - in SharePoint page) shapes in C#

Hi,
I need to get all shapes (which has links to other sharepoint pages) from visio drawing published in Visio web Access webpart. I could able to get Visio web Access webpart through code and get the diagram path.
1.how to get the drawing and shapes in it from webpart?  
2, Does it require to download the drawing locally to get all shapes in it? If so, shall use interop.visio?
3. Have seen some javascript vwa API to getShapes, etc. Is it available in C#?
4. Tried with interop.visio for the drawing which is stored on drive. It gives "exception occured" while open the .vdw file. (Documents.Open(@"C:\test.vdw");
How to do this? Please guide. Environment (VS2010, SP2010, Visio 2010). thx

hy,
have you found a solution?
I can read a visio file VDW on a local machine with the next code, but I can't use it on SharePoint Event Receiver because it make a "System.Security.Permissions.SecurityPermission" error on the ExtractStreamToMemory.
thanks
// read in the tmp file from disk using IStorage
byte[] buffer;
intnum;
Extractor.ExtractStreamToMemory(tmpFileName,
outbuffer,
outnum);
// access the bytes read from disk as a stream
System.IO.MemoryStreammemStream =
newSystem.IO.MemoryStream(buffer);
// work with the stream as a package
System.IO.Packaging.Packagezip = System.IO.Packaging.Package.Open(memStream);
I'm sorry, I lost the source path of this code..

Similar Messages

  • How to access Excel PROTECTED spreadsheet in SharePoint Web Access Web Part in SharePoint2013?

    I have excel file which is protected by password. I need to access Sheet 1 on SharePoint Web Part Page on Dashboard. While I add protected I can not able to Excel Sheet is corrupted as per below image.!
    While I add simple Excel Spreadsheet, it works properly. Is there any alternate solution to display excel spreadsheet on Web Page using Excel Services.

    Hi,
    Please try to remove protection from a worksheet to solve this issue.
    The following articles for your reference:
    Remove protection from a worksheet
    http://office.microsoft.com/en-001/excel-help/password-protect-worksheet-or-workbook-elements-HP010342808.aspx#BMunprotectsheet
    SharePoint 2013: Excel web access web part Errors and Resolutions
    http://amolmeshe.blogspot.kr/2013_06_01_archive.html
    How to Unprotect an excel sheet without password
    https://uknowit.uwgb.edu/page.php?id=28850
    We can also customize a web part to show the excel sheet.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to access the markup in a sharepoint 2013 list

    Hello,
    I would like to try word wrapping my column headers and try changing the column width in a list. How to I access the markup (html)? I do have Sharepoint Designer 2013 installed but I am not too familiar with it.
    Also, Is there any way to add a block of text to a sharepoint list page explaining the list and how to use it?
    Thanks!
    Natalie

    Hi Natalie,
    According to your post, my understanding is that you want to make list column header word wrapping, change the columns’ width in a list and add a block of text to describe this list.
    I recommend that you can follow the steps as below to implement it in your environment.
      1.  Open your site in SharePoint Designer 2013, click on “Lists and Libraries” in the Left Navigation, click on the list which you want to modify.
      2.  Right-click the “All Items” view of this list, select the “Edit File in Advanced Mode” option,  add the following code under the <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> tag, and save
    the changes of the file.
    <style type= "text/css">
    .ms-vh, .ms-vh2, .ms-vh a, .ms-vh2 a
    width: 30px;
    white-space: normal;
    text-align:center;
    vertical-align:text-bottom;
    color:red;
    </style>
      3.  Open this list in your site, go to “List Settings”, click on “List name, description and navigation”, add some descriptions like “This is a test list~!”, and click on the “Save” button.
    Then, you can go back to this list, and you will see the corresponding descriptions in a text box when you click on the “?” icon next to this list name.
    The result is show as below:
    For more information, you can refer to:
    http://blog.pentalogic.net/2011/06/word-wrapping-sharepoint-list-column-headers/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+pentalogic+%28Pentalogic+Technology+-+SharePoint+Blog%29
    Best Regards,
    Yumi Fu

  • How set Access forms to lists in Sharepoint?

    I need to create new view for list like Access form in Sharepoint. I go to Lists-Parameters -> Create View -> Access view.
    Then I create form in Access and save in Sharepoint site. This file have saved like .accdb. How I can choose this view for default view for my list?

    Hi,
    According to your post, my understanding is that you wanted to use the Access view in a list.
    There is no OOB way to use the Access view as a default view in SharePoint 2010.
    In SharePoint 2010, when create an view in Access 2010, you can only choose to ‘Save to SharePoint Site’ to save the .accdb file to a SharePoint document library.
    User then can access the reports or forms in the document library instead. The .accdb file will be opened in Access application.
    If you publish the Access database to Access Service, it will create a new site for the Access database, you can view the forms and reports in browser.
    For more information about publish a access database to SharePoint, you can refer to this site:
    SharePoint 2010 and Access 2010: http://www.youtube.com/watch?v=Dq-tDuPfgZc
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to access Autocad2013 drawing and modify directly from c#?

    I want to open autocad 2013 from C# & open drawing file & modify it. how to send autocad command to autocad2013 directly from visual studio.

    Hi Kishor,
    AutoCAD is out of our support range, I think what you need is AutoCAD API for .NET. Please refer to the following link to see AutoCAD .NET Developer’s Guide.
    http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff-e569a0121d1945c08-2024.htm,topicNumber=d0e52566.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to access MainPage.xaml controls from another page

    i have an image element in the MainPage.xaml and a flyout in SettingsContract1.xaml, when the flyout item is clicked the filepicker is
    opened and i want to set them image source of the image in the Mainpage with the file picked from the filepicker. How can i access the image from SettingsContract1.xaml
    image in MainPage.xaml
    <Image x:Name="img" HorizontalAlignment="Left" Height="332" VerticalAlignment="Top" Width="778" Margin="349,406,0,0"/>
    menuflyout sub in SettingsContract1.xaml.vb
    Private Sub chooseFile_Click(sender As Object, e As RoutedEventArgs) Handles chooseFile.Click
    Dim filePicker As FileOpenPicker
    filePicker = New FileOpenPicker()
    filePicker.ViewMode = PickerViewMode.Thumbnail
    filePicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary
    filePicker.FileTypeFilter.Add(".png")
    Dim file As StorageFile = Await filePicker.PickSingleFileAsync()
    Using filestream As Streams.IRandomAccessStream = Await file.OpenAsync(FileAccessMode.Read)
    Dim bitmapImage As Windows.UI.Xaml.Media.Imaging.BitmapImage = New BitmapImage
    bitmapImage.SetSource(filestream)
    img.Source = bitmapImage 'gives an error
    End Using
    End Sub

    Found the answer from stackoverflow
    Private Async Sub chooseFile_Click(sender As Object, e As RoutedEventArgs) Handles chooseFile.Click
    Dim mapImage As Frame = Window.Current.Content
    Dim mainPage As MainPage = mapImage.Content
    Dim filePicker As FileOpenPicker
    filePicker = New FileOpenPicker()
    filePicker.ViewMode = PickerViewMode.Thumbnail
    filePicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary
    filePicker.FileTypeFilter.Add(".png")
    Dim file As StorageFile = Await filePicker.PickSingleFileAsync()
    Using filestream As Streams.IRandomAccessStream = Await file.OpenAsync(FileAccessMode.Read)
    Dim bitmapImage As Windows.UI.Xaml.Media.Imaging.BitmapImage = New BitmapImage
    bitmapImage.SetSource(filestream)
    mainPage.img.Source = bitmapImage
    End Using
    End Sub

  • How can I create non-rectangular page shapes?

    There's probably a simple answer to this, but I can't figure out how to create a document with a custom page shape in CS4 (or in anything, for that matter). I'm not even looking to do anything that odd, just a 5x3 facing-page layout with rounded corners. I know I can draw rounded rectangle guides for the printer to trim, but I'd also like to produce a PDF showing the actual shape. Any nudge in the right direction is greatly appreciated.

    Pages are that shape there's nothing you can do about it.
    The best you could do is perhaps take a sample of the background colour of Acrobat and then use that as a background for the page.
    Then you can place a White Frame on top with rounded corners.
    Then place your text and graphics it.
    It will be very Faux Pas.
    To add to the illusion, you can select the background grey frame and conver it to a Button. Under the Button options you can set it to Not Print from PDF.
    That means when it's output it will have no grey background.
    You might want to add a small stroke to the white frame so that people can see the page edge when printed themselves.

  • How to enable visio file (.vsd) preview in sharepoint 2013

    I enabled visio service, but when I click a vsd file in document, it is not show online, just download it.
    Awen

    As per my understanding SharePoint will not open .VSD files in browser. If you are using Visio 2013 then save those files as .VSDX and SharePoint 2013 will open those files in Browser or you can save your Visio file as Web Drawing (.VDW) and they should
    open in browser as well.
    Amit

  • Sharepoint Visio Services .vdw file not getting refreshed

    Hello,
    I recently imported an orgchart in visio from (sql server table, excel sheet) that created shapes for me. And I can publish the file as .vdw on a sharepoint library and it works fine over there. But I wanted to refresh the data as the data in sql table
    or excel sheet chages. So I linked to datasource on visio to excel sheet(saved on sharepoint same library where the .vdw file is) and did automatically link the shapes with the external data. Refresh works fine on the visio file. But after I publish to sharepoint(in
    the publish settings datasource is selected) as vdw file, and I make some changes to excel file, and click refresh on the vdw file viewed in browser I dont see any data changes. I tried several different ways like connecting to data connection library pointing
    to sql table etc. Nothing seems to refresh the data in vdw file. Am I missing something? Appreciate help.
    thank you.
    rani

    Hi,
    I understand that you failed to refresh Visio Services .vdw file.
    It is a configuration problem in Central Administration.
    You need to create Target Application and associate it with Visio Services.
    Here is a similar blog for your reference:
    http://sharepointsolutions.com/sharepoint-help/blog/2010/10/visio-services-wont-refresh-in-sharepoint-2010how-to-fix-it/
    If the issue still exists, I recommend to log into Central Administration, clicked on the SharePoint Health Analyzer and see the issues.
    In addition, you can check the SharePoint ULS log to find more information about this error, the ULS log file is in the location: C:\Program Files\Common Files\Microsoft Shared\Web Server
    Extensions\14\LOGS
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How do I create  a PDF using Acrobat 7.0 in Windows 8 from a Visio drawing on a 64-bit system

    I used to be able to create a PDF using Acrobat 7.0 from a Visio drawing in XP. Now I'm running a 64-bit system, no Adobe printer can be installed, and it is unsupported.  Help?

    On a 32-bit system, there is a workaround. I do not think it is possible to get AA7 to work on a 64-bit system (no one has reported success and only 1 has suggested success with AA8). You may be able to print to a PS file and then open that in Distiller. I suspect that is the only way and you will have to find a decent PS printer driver to do it. I suspect the printer driver (and associated AcroTray) will not work in a 64-bit Win8 -- Acrobat and Distiller may.

  • Hyperlink which refer to a Visio drawing will not display the Visio drawing inside the browser

    I have a site collection of type "Publishing>>Enterprise wiki", and i have the Visio Graphics service application enabled (i have enterprise SP license). now if i open the document library , and i click on the Visio diagram
    the diagram will open inside the browser as intended :-
    But the problem i am facing is as follow,if i edit a page , add a link, select to "chose from SharePoint" and i browse for the Visio drawing as follow:-
    Then when users click on the link, the Visio diagram will not be shown inside the browser instead an open dialog will be displayed as follow:-
    So can anyone advice how to force the hyperlink to have the same effect as clicking on the diagram from the document library , where the visio drawing will be shown directly inside the browser, instead of prompting an open dialog box ?

    Can you please check "Library settings" -> "Advance settings" and what is the settings
    Opening Documents in the Browser
    Specify whether browser-enabled documents should be opened in the client or browser by default when a user clicks on them. If the client application is unavailable, the document will
    always be opened in the browser.
    Default open behavior for browser-enabled documents:
    Open in the client application 
       X Open in the browser 
    Use the server default (Open in the browser)
    Shouldn't be "Client application"
    Regards Sudip Misra [email protected] +1-412-237-5435 Pittsburgh, PA
    those setting apply only when clicking on a document directly inside the document library, but they do not have any effect when adding hyperlinks to the documents...

  • Navigation from OnePage to Another Page in MS Visio chart added in SharePoint 2013 Site

    Dear All,
    I have made Org Chart in MS Visio 2013 including multiple pages (sheets) & hyperlink provided to navigate from one page to another after clicking on particular box/Icon.
    In Ms Visio, its working properly but when i have added this in SharePoint site then when clicking on hyper linked Box then instead of navigating to another page , it is downloading files.
    Kindly let me know what should be done.

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    How do you upload the Visio file to SharePoint 2013? Upload the whole file directly or use the Visio 2013 build-in feature to save as to SharePoint site.
    Which file format do you use? VSDX or VWD format (Visio Web Drawing)
    Which browsers do you use?
    If you did not use VWD format, I recommend you try to
    save diagrams to SharePoint as Web drawings, we are using Visio Services to make the diagram available for people to view in a browser. Web drawings can have hyperlinks, multiple pages, and other features like a standard Visio drawing, including the
    ability to connect to external data sources. (Based on my test, the method worked well for me, it would navigate hyperlink correctly among different pages)
    Then, if we can navigate hyperlink correctly, and it becomes ”downloading mode“. This issue may be caused by the browsers add-ins. Please try to disable all the add-ins to test.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to create external content type in sharepoint for salesforce account

    Can anybody help me on How to create external content type in sharepoint for salesforce account.
    I wanto upload documents to a document library which should sync with accounts in saleforce.
    thanks in advance

    Hi,
    The following materials would be helpful:
    Tutorial: Access Salesforce Leads in SharePoint through an External List
    http://geekswithblogs.net/dataintegration/archive/2014/02/03/tutorial-access-salesforce-leads-in-sharepoint-through-an-external-list.aspx
    Salesforce SharePoint Integration – Best Practices
    http://rainforce.walkme.com/salesforce-sharepoint-integration-best-practices/#.VFxra3mKAeE
    If you want to upload documents to SharePoint document library from the Saleforce, we can also customize your own web service using SharePont .Net Client Object Model or REST to achieve it.
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • How to make ADA Compliance Website in SharePoint

    Hello,
    We are facing problem to make our SharePoint website to ADA Compliance. This is because, on most of the pages, SharePoint renders Html that can not be changed.
    Can anybody helps how can we change or  make a SharePoint Website ADA Compliance.
    An immediate reply will be highly appreciable.
    Thanks,
    Rajesh Lohar

    Hi,
    According to your description, my understanding is that you want to make SharePoint site complicate with Americans with Disabilities Act.
    SharePoint provides a More Accessible Mode that changes the rendering and behavior of page links to be more compatible with accessibility tools such as screen readers. 
    Here are some detailed articles for your reference:
    http://blogs.msdn.com/b/markarend/archive/2007/07/03/moss-2007-and-accessibility-ada-guidelines-and-standards.aspx
    http://msdn.microsoft.com/en-us/library/office/jj841103(v=office.15).aspx
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Just starting in Photoshop how can access the tools in the most simplist way and use them effective.

    How just started using photoshop and wondering how to use it. How to access the tools so I can get started on drawing and painting in it.

    Watch online videos and practice doing what they show you.
    Keep in mind there is no easy way to learn Photoshop, simply because it's so compex and powerful.  But be patient, it will come.
    -Noel

Maybe you are looking for