Visio Javascript API for VIsio Online

%3CLINGO-SUB%20id%3D%22lingo-sub-31565%22%20slang%3D%22en-US%22%3EVisio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-31565%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2Fp%2F%3Flinkid%3D825706%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EVisio%20Online%3C%2FA%3E%26nbsp%3Bis%20the%20new%20way%20to%20view%20and%20share%20Visio%20diagrams%20on%20the%20web.%20We%20are%20pleased%20to%20announce%20general%20availability%20of%20%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Fblogs%2Fvisio-javascript-apis-preview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EVisio%20JavaScript%20APIs%26nbsp%3B%3C%2FA%3E.%20These%20APIs%20are%20the%20first%20step%20towards%20enabling%20developers%20to%20extend%20capabilities%20of%20Visio%20Online%20in%20a%20SharePoint%20page.%20Here%20are%20few%20resources%20to%20get%20you%20started%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Fblogs%2Fvisio-javascript-apis-preview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAPI%20Release%20Blog%20on%20Dev.Office.com%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E2.%20%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Freference%2Fadd-ins%2Fvisio%2Fvisio-javascript-reference-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EJS%20API%20Reference%20Documents%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20been%20using%20Visio%20Web%20Services%20API%2C%26nbsp%3Bwe%20request%26nbsp%3Byou%20to%20migrate%20your%20solutions%26nbsp%3Bto%20new%26nbsp%3BVisio%20Online%20JavaScript%20APIs.%20Here%20is%20the%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fvisio%2F2017%2F09%2F25%2Fmigrate-from-visio-web-access-to-visio-online%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Emigration%20blog%20%3C%2FA%3Ethat%20will%20guide%20you%20through%20the%20process.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20that%20these%20APIs%20are%20not%20applicable%20for%20Office%20Add-ins%20Platform.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20any%20questions%2C%26nbsp%3Bfeel%20free%20to%26nbsp%3Bdrop%20a%20comment%20below%20or%26nbsp%3Bmail%20to%20TellVisio%20%5Bat%5D%26nbsp%3BMicrosoft%20%5Bdot%5D%20com%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EVisio%20Product%20Team%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-31565%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EVisio%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-266812%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-266812%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20sample%20SharePoint%20Framework%20web%20part%20using%20the%20Visio%20JavaScript%20API%20some%20time%20ago%2C%20in%20case%20someone%20is%20interested.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20check%20the%20source%20code%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-visio%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-webparts%2Ftree%2Fmaster%2Fsamples%2Freact-visio%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20I%20have%20a%20blog%20post%20with%20some%20details%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fjoelfmrodrigues.wordpress.com%2F2018%2F08%2F27%2Fsharepoint-framework-with-visio-javascript-apis%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjoelfmrodrigues.wordpress.com%2F2018%2F08%2F27%2Fsharepoint-framework-with-visio-javascript-apis%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20feedback%26nbsp%3Bis%20welcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-239722%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-239722%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20refer%20to%20my%20blog%20post%20on%20embedding%20Visio%20files%20on%20a%20SharePoint%20page%20-%20hope%20it%20helps%20and%20makes%20life%20easier.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblog.dodhia.co%2Fgithub-update-embed-visio-files-onto-a-sharepoint-page-with-this-sharepoint-online-web-part%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.dodhia.co%2Fgithub-update-embed-visio-files-onto-a-sharepoint-page-with-this-sharepoint-online-web-part%2F%3C%2FA%3E%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3EParas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-217929%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217929%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20there%20any%20plans%20for%20the%20API%20to%20work%20on%20web%20parts%20on%20modern%20pages%20and%20more%20specifically%20be%20able%20to%20do%20web%20part%20connections...send%20shape%20data%20to%2C%20highlight%20shapes%20from%2C%20choice%20filters%20etc%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20-%20Looking%20to%20create%20SharePoint%20pages%20where%20a%20user%20can%20select%20a%20shape%20from%20the%20visio%20web%20part%20(process%20flow%20chart)%20and%20that%20will%20filter%20the%20document%20library%20web%20part%20to%20show%20the%20documents%20corresponding%20to%20the%20step%20within%20the%20process.%20This%20works%20with%20the%20shape%20data%20value%20corresponding%20to%20a%20column%20value%20in%20the%20document%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20API%20will%20work%20on%20classic%20pages...any%20sign%20of%20when%20this%20will%20be%20available%20in%20MODERN%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EDarren%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-173462%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-173462%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jouni%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESorry%20that%20you%20faced%20this.%20Would%20you%20be%20able%20to%20provide%20the%20code%20snippet%20where%20you%20are%20seeing%20this%20console%20error%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20use%20tellVisio%20%5Bat%5D%20microsoft%20%5Bdot%5D%20com%20for%20providing%20more%20details%20regarding%20this%20or%20any%20other%20feedback%20that%20you%20have%20related%20to%20the%20Visio%20Online%20APIs.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3ERahul%20Mittal%20%7C%20Program%20Manager%20%7C%20Microsoft%20Visio%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-173103%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-173103%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20using%20Visio%20Online%20inside%20Sharepoint%20page%20(classic)%3A%20script%20editor%20web%20part%2C%20iframe%20.....%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20IE11%20there%20this%20error%20in%20console%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20SCRIPT70%3A%20Permission%20denied%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20visio-web-embedded.js%20(20%2C38847)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEverythins%20seems%20to%20be%20working%20but%20whats%20that%20error%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJouni%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-164042%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-164042%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20could%20try%20the%20below%20options%20to%20get%20rid%20of%20the%20extra%20space%20and%20borders.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20If%20your%20diagram%20canvas%20has%20white%20space%2C%20please%20use%20'Fit%20to%20Drawing'%20option%20available%20in%20Visio%20Desktop.%20See%20attached.%3C%2FP%3E%0A%3CP%3E2.%20Use%20the%20document.view.%3CSPAN%3EhideDiagramBoundry%3C%2FSPAN%3E%3D%20true%3B%20to%20hide%20the%20diagram%20boundary.%3C%2FP%3E%0A%3CP%3E3.%20Change%20the%20width%2Fheight%20of%20the%20iFrame%20to%20fit%20your%20drawing%20page%2C%20by%20using%20the%20below%20code%20during%20initialization%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20var%20session%20%3D%20new%20OfficeExtension.EmbeddedSession(%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20url%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20id%3A%20%22embed-iframe%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20container%3A%20document.getElementById(%22iframeHost%22)%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20width%3A%20%22400px%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20height%3A%20%22100%25%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D)%3B%3C%2FP%3E%0A%3CP%3E4.%20There%20is%20an%20API%20under%20development%20for%20completely%20hiding%20the%20iFrame%20borders.%20application.showBorders%20%3D%20false%3B%3C%2FP%3E%0A%3CP%3EThe%20API%20should%20be%20available%20by%20March%20and%20you%20could%20check%20%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Freference%2Fadd-ins%2Fvisio%2Fapplication%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3Epage%26nbsp%3Bfor%20updates%20related%20to%20this%20API.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3ERahul%20Mittal%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-162568%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-162568%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20help.%20But%20there%20is%20still%20some%20issues%2C%20i%20would%20like%20to%20remove%20the%20white%20margins%20so%20the%20image%20fills%20up%20the%20whole%20space%2C%20and%20to%20completely%20remove%20the%20iFrame%C2%B4s%20border%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-160602%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-160602%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20is%20good%20to%20hear%20that%20you%20want%20to%20use%20Visio%20Online%20APIs%20for%20publishing%20documents%20on%20SharePoint.%26nbsp%3B%20You%20can%20find%20more%20details%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Freference%2Fadd-ins%2Fvisio%2Fvisio-javascript-reference-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAPI%20reference%3C%2FA%3Eand%20some%20examples%20in%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fvisio%2F2017%2F09%2F25%2Fmigrate-from-visio-web-access-to-visio-online%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3Eblog.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegarding%20the%20issues%20faced%2C%20you%20can%20change%20the%20styling%20of%20the%20iframe%20by%20getting%20the%20iframe%20element%26nbsp%3Bthrough%20it's%20id%20and%20applying%20the%20properties.%20Something%20like%3C%2FP%3E%0A%3CDIV%20class%3D%22w3-code%20notranslate%20jsHigh%22%3E%3CSPAN%3Edocument.getElementById(%22embed-iframe%22).style.marginTop%20%3D%20%2210px%22%3B%20%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22w3-code%20notranslate%20jsHigh%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EAs%20scroll%20bars%20help%20the%20user%20in%20panning%20the%20diagram%2C%20you%20can%20hide%20the%20scroll%20bars%2C%20by%20disabling%20the%20pan%20capability%20by%20calling%20the%20below%20%3CA%20href%3D%22https%3A%2F%2Fdev.office.com%2Freference%2Fadd-ins%2Fvisio%2Fdocumentview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAPI%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3Edocument.view.disablePan%20%3D%20true%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3ERahul%20Mittal%20%7C%20Microsoft%20Visio%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-160569%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-160569%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20David%20for%20your%20query.%20Adding%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24218%22%20target%3D%22_blank%22%3E%40Rahul.Mittal%3C%2FA%3Efrom%20my%20team%20who%20can%20best%20answer%20this%20question.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-160459%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-160459%22%20slang%3D%22en-US%22%3EIn%20our%20company%20we%20have%20office%20365%20and%20sharepoint%20since%20August.%20We%20want%20to%20publish%20certain%20documentation%20in%20sharepoint%20for%20the%20knowledge%20of%20all%20the%20employees.%20Some%20of%20the%20documents%20are%20in%20Visio%20and%20we%20are%20using%20the%20javascript%20api%20to%20publish%20it.%20But%20we%20have%20some%20problem%20caused%20because%20we%20do%20not%20know%20and%20we%20do%20not%20find%20how%20to%20control%20the%20style%20of%20the%20iframe%20content.%20We%20want%20to%20remove%20the%20border%2C%20the%20scroll%20and%20the%20margins%2C%20but%20we%20do%20not%20know%20how%20or%20we%20have%20seen%20any%20example.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1794142%22%20slang%3D%22en-US%22%3ERe%3A%20Visio%20Javascript%20API%20for%20VIsio%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1794142%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F24218%22%20target%3D%22_blank%22%3E%40Rahul.Mittal%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20link%20you%20mentioned%20in%20the%20above%20post%20regarding%20API%20doesn't%20exists%20anymore.%20Could%20you%20please%20share%20the%20latest%20links%20of%20API's.%3C%2FP%3E%3CP%3EI%20am%20very%20new%20to%20Visio%20online.%3C%2FP%3E%3CP%3EI%20am%20using%20Embed%20web%20part%20on%20Modern%20Site%20to%20show%20Visio%20file%20.I%20need%20to%20hide%20the%20header%20and%20footer%20of%20it.%3C%2FP%3E%3CP%3EWould%20you%20like%20to%20put%20some%20highlights%20on%20it%2C%20how%20can%20I%20achieve%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Hello,

 

Visio Online  is the new way to view and share Visio diagrams on the web. We are pleased to announce general availability of Visio JavaScript APIs . These APIs are the first step towards enabling developers to extend capabilities of Visio Online in a SharePoint page. Here are few resources to get you started:

 

1. API Release Blog on Dev.Office.com

2. JS API Reference Documents

 

If you have been using Visio Web Services API, we request you to migrate your solutions to new Visio Online JavaScript APIs. Here is the migration blog that will guide you through the process.  

 

Note that these APIs are not applicable for Office Add-ins Platform.

 

If you have any questions, feel free to drop a comment below or mail to TellVisio [at] Microsoft [dot] com

 

Regards

Visio Product Team

 

11 Replies
In our company we have office 365 and sharepoint since August. We want to publish certain documentation in sharepoint for the knowledge of all the employees. Some of the documents are in Visio and we are using the javascript api to publish it. But we have some problem caused because we do not know and we do not find how to control the style of the iframe content. We want to remove the border, the scroll and the margins, but we do not know how or we have seen any example.

Thanks David for your query. Adding @Rahul.Mittal from my team who can best answer this question.

Hi David

 

It is good to hear that you want to use Visio Online APIs for publishing documents on SharePoint.  You can find more details in the API reference and some examples in this blog.

 

Regarding the issues faced, you can change the styling of the iframe by getting the iframe element through it's id and applying the properties. Something like

document.getElementById("embed-iframe").style.marginTop = "10px";
 

As scroll bars help the user in panning the diagram, you can hide the scroll bars, by disabling the pan capability by calling the below API.

document.view.disablePan = true;

 

Regards

Rahul Mittal | Microsoft Visio

 

 

Thanks for your help. But there is still some issues, i would like to remove the white margins so the image fills up the whole space, and to completely remove the iFrame´s border .

Hi

 

You could try the below options to get rid of the extra space and borders.

 

1. If your diagram canvas has white space, please use 'Fit to Drawing' option available in Visio Desktop. See attached.

2. Use the document.view.hideDiagramBoundry = true; to hide the diagram boundary.

3. Change the width/height of the iFrame to fit your drawing page, by using the below code during initialization:

  var session = new OfficeExtension.EmbeddedSession(

          url,

          {

              id: "embed-iframe",

              container: document.getElementById("iframeHost"),

              width: "400px",

              height: "100%"

          });

4. There is an API under development for completely hiding the iFrame borders. application.showBorders = false;

The API should be available by March and you could check this page for updates related to this API.

 

Regards

Rahul Mittal

Hi

 

I'm using Visio Online inside Sharepoint page (classic): script editor web part, iframe .....

 

In IE11 there this error in console:

 

      SCRIPT70: Permission denied
      visio-web-embedded.js (20,38847)

 

Everythins seems to be working but whats that error?

 

Jouni

 

 

 

Hi Jouni

 

Sorry that you faced this. Would you be able to provide the code snippet where you are seeing this console error?

 

You can also use tellVisio [at] microsoft [dot] com for providing more details regarding this or any other feedback that you have related to the Visio Online APIs.

 

Regards

Rahul Mittal | Program Manager | Microsoft Visio

 

Hello

 

Are there any plans for the API to work on web parts on modern pages and more specifically be able to do web part connections...send shape data to, highlight shapes from, choice filters etc

 

Example - Looking to create SharePoint pages where a user can select a shape from the visio web part (process flow chart) and that will filter the document library web part to show the documents corresponding to the step within the process. This works with the shape data value corresponding to a column value in the document library.

 

The API will work on classic pages...any sign of when this will be available in MODERN?

 

Regards

Darren

Hello everyone, 

Please refer to my blog post on embedding Visio files on a SharePoint page - hope it helps and makes life easier.

https://blog.dodhia.co/github-update-embed-visio-files-onto-a-sharepoint-page-with-this-sharepoint-o...

Thanks!

Paras

I have created a sample SharePoint Framework web part using the Visio JavaScript API some time ago, in case someone is interested.

 

You can check the source code here:

https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-visio

 

And I have a blog post with some details here:

https://joelfmrodrigues.wordpress.com/2018/08/27/sharepoint-framework-with-visio-javascript-apis/

 

Any feedback is welcome.

 

 

Hello @Rahul.Mittal ,

 

The link you mentioned in the above post regarding API doesn't exists anymore. Could you please share the latest links of API's.

I am very new to Visio online.

I am using Embed web part on Modern Site to show Visio file .I need to hide the header and footer of it.

Would you like to put some highlights on it, how can I achieve it?